RE: [PHP-DEV] hi memory usage with php-cli

2002-11-24 Thread Pete McCormick
ger and takes less storage space than a string. Example: $name, PROD_ARTNUM => $artnum, ... ); ?> I think that might save you some memory. Just an idea. Pete -Original Message- From: Robin Ericsson [mailto:[EMAIL PROTECTED]] Sent: November 24, 2002 12:20 PM To: [EMAIL PROTECT

[PHP-DEV] hi memory usage with php-cli

2002-11-24 Thread Robin Ericsson
Hi, I have a huge xml-file with about 500k lines, which gives around 17000 products, which I import to a database. The problem is that the script is taking a lot of memory, about 100mb when it's finished. The script goes something like this $product = array(), then I add some values to the array