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
[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
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
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
[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
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
6 matches
Mail list logo