Page 1 of 1

memory_limit - Not working... help!

PostPosted: 19. April 2009 13:47
by Thomas99
Hi, basically I'm running XAMPP on my windows PC. I have a php script, where I load a txt file, the script reads the contents and puts them in arrays and then encrypts the arrays. I can upload txt files that are 1MB for example, but if they're 3MB or whatever then it gives this error.

Code: Select all
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16 bytes) in C:\xampp\htdocs\site\file_hash.php on line 14


The txt size is 3.8MB... in my php.ini (apache/bin/php.ini) I've edited many values...

max_execution_time = 0 ; Maximum execution time of each script, in seconds
max_input_time = 0 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M
...
; Maximum size of POST data that PHP will accept.
post_max_size = 64M
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M

It still gives me the error... I've restarted apache, no use.

Help, please.

Re: memory_limit - Not working... help!

PostPosted: 25. April 2009 19:23
by newbie2244
Greetings-

Which Windows OS are you using?

I'm on XP2, and here's a few suggestions:

Check free space on your disk volume.
Start->Control Panel->System->System Properties->Advanced->Performance.

Regards-