memory_limit - Not working... help!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

memory_limit - Not working... help!

Postby Thomas99 » 19. April 2009 13:47

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.
Posts: 1
Joined: 19. April 2009 13:41

Re: memory_limit - Not working... help!

Postby newbie2244 » 25. April 2009 19:23


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.

Posts: 49
Joined: 20. February 2009 22:39

Return to XAMPP for Windows

Who is online

Users browsing this forum: tshivas23 and 74 guests