php Programming Glossary: ini_get
Changing upload_max_filesize on PHP http://stackoverflow.com/questions/1122418/changing-upload-max-filesize-on-php this code php ini_set 'upload_max_filesize' '10M' echo ini_get 'upload_max_filesize' ini_get 'post_max_size' I end up with.. '10M' echo ini_get 'upload_max_filesize' ini_get 'post_max_size' I end up with 2M 8M This is despite my php.ini..
Increasing PHP memory_limit. At what point does it become insane? http://stackoverflow.com/questions/1425138/increasing-php-memory-limit-at-what-point-does-it-become-insane in this case that temp.php only contains var_dump ini_get 'memory_limit' In my opinion this is way safer than increasing..
Set maximum execution time for exec() specifically [duplicate] http://stackoverflow.com/questions/2202355/set-maximum-execution-time-for-exec-specifically limit after the time critical code has run e.g. default ini_get 'max_execution_time' set_time_limit 1000 ... some long running..
(PHP) How to destroy the session cookie correctly? http://stackoverflow.com/questions/2241769/php-how-to-destroy-the-session-cookie-correctly _SESSION array destroy all of the session variables if ini_get session.use_cookies params session_get_cookie_params setcookie..
Detecting file upload size on the client side? http://stackoverflow.com/questions/2934788/detecting-file-upload-size-on-the-client-side manual en features.file upload.php#73762 POST_MAX_SIZE ini_get 'post_max_size' unit strtoupper substr POST_MAX_SIZE 1 multiplier..
HTTP Headers for File Downloads http://stackoverflow.com/questions/386845/http-headers-for-file-downloads Disable Output Buffering @ob_end_clean IE Required if ini_get 'zlib.output_compression' ini_set 'zlib.output_compression'..
Check if “exec” is disabled [duplicate] http://stackoverflow.com/questions/3938120/check-if-exec-is-disabled question php function exec_enabled disabled explode ' ' ini_get 'disable_functions' return in_array 'exec' disabled EDIT Fixed..
ini_set(“memory_limit”) in PHP 5.3.3 is not working at all http://stackoverflow.com/questions/5061917/ini-setmemory-limit-in-php-5-3-3-is-not-working-at-all is not working at all I had this working before echo ini_get memory_limit . n ini_set memory_limit 256M echo ini_get memory_limit.. ini_get memory_limit . n ini_set memory_limit 256M echo ini_get memory_limit . n That would input this 32M 256M on a php script..
Truly destroying a PHP Session? http://stackoverflow.com/questions/508959/truly-destroying-a-php-session to reduce its lifetime if time _SESSION 'CREATED' ini_get 'session.gc_maxlifetime' session_regenerate_id true _SESSION..
How to turn off magic quotes on shared hosting? http://stackoverflow.com/questions/517008/how-to-turn-off-magic-quotes-on-shared-hosting magic quotes. Something like this if in_array strtolower ini_get 'magic_quotes_gpc' array '1' 'on' _POST array_map 'stripslashes'..
relative path in require_once doesn't work http://stackoverflow.com/questions/5371828/relative-path-in-require-once-doesnt-work 1 error_reporting E_ALL ini_set 'include_path' ini_get 'include_path' .' Applications MAMP htdocs otsg ' require_once..
Why doesn't file_get_contents work? http://stackoverflow.com/questions/6724467/why-doesnt-file-get-contents-work ' p ' # Output information about allow_url_fopen if ini_get 'allow_url_fopen' 1 echo ' p style color #0A0 fopen is allowed..
Looping Through All a Server's Sessions in PHP http://stackoverflow.com/questions/675913/looping-through-all-a-servers-sessions-in-php create a php file with php echo Session Save Path . ini_get 'session.save_path' as it's contents and open the file in your..
Find Number of Open Sessions http://stackoverflow.com/questions/679657/find-number-of-open-sessions This code should work number_of_users count scandir ini_get session.save_path Of course it won't because of the security..
Does sleep time count for execution time limit? http://stackoverflow.com/questions/740954/does-sleep-time-count-for-execution-time-limit for more than your maximum execution time. php sleep ini_get 'max_execution_time' 10 Spoiler Under Linux sleeping time is..
RegExp in preg_match function returning browser error http://stackoverflow.com/questions/7620910/regexp-in-preg-match-function-returning-browser-error 8MB. echo sprintf PCRE pcre.recursion_limit is set to s n ini_get pcre.recursion_limit function parseAPIResults results pattern..
Efficient PHP auto-loading and naming strategies http://stackoverflow.com/questions/791899/efficient-php-auto-loading-and-naming-strategies '_' ' ' class . '.php' foreach explode PATH_SEPARATOR ini_get 'include_path' as base_path foreach files as file path base_path..
|