Forum Moderators: coopster
I have about 8000 products to export. I have written an script to write products to an xml file using the fwrite() function of php , but when I try this it gives the following error
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 204 bytes)
I am on shared server and asked the webhost to increase the memory, but i am not sure if that works.
I would appreciate any advice and help
thanks
- John
*Edited for typo, ops!
[edited by: JAB_Creations at 4:01 pm (utc) on July 6, 2007]
Like this
memory_limit = 2M ; Maximum amount of memory a script may consume (8MB)
How do you load those 8000 products? All at once into some array and than export all, or you read/save them one by one?
OK now I am going to change the script to use header('Content-Disposition: attachment;... to force a download.
I will let you know how this goes.