Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread Afan Pasalic
Means not bad - if it's REALLY well controlled. But, to risky. :) Chris wrote: [EMAIL PROTECTED] wrote: ok, then. how "smart" is to do something like this? what's a bad side? Your memory will runaway and your script could potentially take over the server and slow everything down. Just like

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread Chris
[EMAIL PROTECTED] wrote: ok, then. how "smart" is to do something like this? what's a bad side? Your memory will runaway and your script could potentially take over the server and slow everything down. Just like any other script could. [EMAIL PROTECTED] wrote: Hi, I'm working on the sc

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
hm. it looks like set_time_limit(0); ok, then. how "smart" is to do something like this? what's a bad side? > [EMAIL PROTECTED] wrote: >> Hi, >> I'm working on the script that has to read csv file (51 column an a >> little >> bit over 3000 rows) with products and store the info in DB. >> Script

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
Spread sheet is 2M, but 12M wasn't enough. this is the code getting data from csv: $fp = fopen ('/var/www/html/afan.com/admin/tmp/'.$SpreadSheetFile,"r"); while ($data = fgetcsv ($fp, 5, ",")) { $num = count ($data); for ($c=0; $c<$num; $c++) { $PRODUCTS[$row

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread T.Lensselink
[EMAIL PROTECTED] wrote: > Hi, > I'm working on the script that has to read csv file (51 column an a little > bit over 3000 rows) with products and store the info in DB. > Script works fine while I tested on csv files up to 200 records. > And, when I tried to upload REAL data I got this. > PHP: Fat

[PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
Hi, I'm working on the script that has to read csv file (51 column an a little bit over 3000 rows) with products and store the info in DB. Script works fine while I tested on csv files up to 200 records. And, when I tried to upload REAL data I got this. PHP: Fatal error: Allowed memory size of 8388