You can initilize local settings in a php file.
You can set values like max_execution_time, default_socket_timeout, memory_limit, mysql.connect_timeout, user_ini.cache_ttl, display_errors and log_errors
it always nice to check the errors in PHP files with error_reporting.
Below is the sample script to set ini_set values.
If you dont want to set every time in PHP script simply set the values in php.ini file on your server/machine.
ini_set('max_execution_time', 6000);
ini_set("default_socket_timeout", 6000);
ini_set('memory_limit','256M');
ini_set('mysql.connect_timeout', 6000);
ini_set('user_ini.cache_ttl', 6000);
ini_set('display_errors',0);
ini_set('log_errors',1);
error_reporting(E_ALL);
//phpinfo();
?>