I'm processing an old database php array to a new database. The data .php files are in total around 220 MB large.
I've inserted these lines in the script so that it should run fine:
ini_set("memory_limit", "-1");
set_time_limit(0);
This is how I include the products:
// The exports made by PHPMYADMIN, exported as PHP-Array
require_once 'export/tx_ttproductsv2_products.php';
require_once 'export/tx_ttproductsv2_keyword.php';
require_once 'export/tx_ttproductsv2_keywords_in_products.php';
require_once 'export/tx_ttproductsv2_typebook.php';
require_once 'export/tx_ttproductsv2_typegospel7.php';
require_once 'export/tx_ttproductsv2_typemedia.php';
When the script is trying to require them I get this error:
PHP Fatal error: Out of memory (allocated 880541696) (tried to allocate 469762048 bytes) in ......
I've got an local EasyPHP installation running on x64 Win 7 SP1. I've got 6 GB memory, Intel i5.
How can I get PHP to run the whole script without the memory error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…