FlyingMonkey Posted October 21, 2005 Posted October 21, 2005 I am attempting to write a php.ini to control the memory allocation for a particular set of scripts. supposedly, you can place a php.ini (in the folder and it'll control it locally, just for those files). But i have no clue how to do so. i tried a few searches online, but i was hoping someone could verify that the following is legitimate for a php.ini from start to finish. ;attempting to set memory for just a particular script max_input_time = 9000 memory_limit = 128M post_max_size = 8M Thanks. Most likely your question has been answered, please do a search first.
kgt Posted October 21, 2005 Posted October 21, 2005 ;attempting to set memory for just a particular script max_input_time = 9000 memory_limit = 128M post_max_size = 8M Did you ensure that the memory limit directive was included at runtime? You'd see this as --enable-memory-limit in the configure line if you look at the Admin > Tools > Server Info page. Here's a link on setting up configuration files: http://www.washington.edu/computing/web/pu...ng/php-ini.html Also note that if PHP is not running on Apache as CGI, then changes you make to a php.ini file would not take effect until Apache is restarted. You can modify some directives in an .htaccess file, which would take immediate effect (provided your host has AllowOverrides on) http://us3.php.net/configuration.changes Contributions Discount Coupon Codes Donations
FlyingMonkey Posted October 22, 2005 Author Posted October 22, 2005 thanks! yup, it's apache as cgi and it has the --enable-memory-limit Configure Command. Most likely your question has been answered, please do a search first.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.