json_encode function exists in PHP 5.3
Function sys_get_temp_dir exists in php 5.3