There is no need to change php.ini Just use the following statement at the start of the script and it will change the memory limit at runtime. Ini_set('memory_limit','800M'); This will allocate 800 mb of memory at runtime. Thanks, Asim Sent from Yahoo! Mail on Android [Non-text portions of this message have been removed]