On Sat, Aug 15, 2009 at 6:37 PM, Ram Kumar.K<[email protected]> wrote: > hi friends I am learning php ... > While running the php program it shows the error > "Fatal error: Allowed memory size of 268435456 bytes exhausted (tried > to allocate 35 bytes) in /var/www/flames/one.php on line 58" > And also i changed the memory limit for the php > by > > $old_limit = ini_set("memory_limit", "256M"); > > but no use, the same error is displayed > plz help....
Depending on your setup, you may not be permitted to change memory_limit from php code. Try setting it in your php.ini and restart your web server. Note that the error message is consistent with your setting! 256M is what you are setting your code, try increasing memory_limit to higher values. Once the setting is changed, check output of phpinfo() to ensure the change is accepted. - Raja _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
