Created
April 26, 2014 02:35
-
-
Save xombra/11310331 to your computer and use it in GitHub Desktop.
Inicializacion de ini_set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function INISET() { | |
ini_set('register_globals', 'Off'); | |
ini_set('allow_call_time_pass_reference','Off'); | |
ini_set('allow_url_fopen','On'); | |
ini_set('allow_url_include','Off'); | |
ini_set('default_mimetype','text/html'); | |
ini_set('default_socket_timeout','45'); | |
ini_set('display_errors', "off"); | |
ini_set('magic_quotes_gpc','Off'); | |
ini_set('max_execution_time','30'); | |
ini_set('max_file_uploads','20'); | |
ini_set('max_input_time','1000'); | |
ini_set('mysqli.connect_timeout','30'); | |
ini_set('post_max_size','1M'); | |
ini_set('safe_mode','Off'); | |
ini_set('session.gc_maxlifetime','1200'); | |
ini_set('session.cache_expire','180'); | |
ini_set('short_open_tag','Off'); | |
ini_set('upload_max_filesize','1M'); | |
ini_set('file_uploads','off'); | |
ini_set('output_buffering',4096); | |
ini_set('memory_limit','256M'); | |
ini_set('mysql.cache_size','2048'); | |
ini_set('display_errors', "on"); | |
error_reporting(1); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment