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?? Link to comment https://forums.phpfreaks.com/topic/222476-php-error-in-windows-cmd/ 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"); Link to comment https://forums.phpfreaks.com/topic/222476-php-error-in-windows-cmd/#findComment-1150685 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.