samerhameed Posted December 23, 2010 Share Posted December 23, 2010 Dear my friends I'm new wit PHP language,i installed WAMP5 which include Apache/2.2.6 and PHP version 5.2.5 i connect my PHP file to MSSQL to get data from this DB,when i execute this script from explorer i got the result successfully but when i want execute this script from windows CMD i got an error (Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 127488 bytes) in C:\wamp\www\smulog\smulog.php on line 8. i changed memory_limit parameter from 2M to 990M also i add line in .htaccess file php_value memory_limit=999M and the problem still appear to me,do you have any idea to solve this problem please?? Quote Link to comment Share on other sites More sharing options...
samerhameed Posted December 23, 2010 Author Share Posted December 23, 2010 Dear my friends i found the solution, i need to add below command at the top of the script in initialize memory for my script ini_set("memory_limit","999M"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.