Hi David,
I can get the command line option to work. I used the following
wget --max-redirect=9999 -O /dev/null http://www.example.com/scripts/import_slow.php?filename=@ALL
and it generated this in a second.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “/dev/null”
[ ] 66,994 28.5K/s in 2.3s
2011-05-12 05:37:11 (28.5 KB/s) - “/dev/null” saved [66994]
I got the following
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/walletb1/public_html/scripts/import_slow.php</b> on line <b>244</b><br />
...<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/walletb1/public_html/scripts/import_slow.php:244) in <b>/home/walletb1/public_html/scripts/import_slow.php</b> on line <b>311</b><br />
Hi karakartel,
I think I can see the problem, related to preamble in the CSV. In your scripts/slow_import.php, look for the following code at line 227:
if (count($record))
...and REPLACE that with:
if (is_array($record))
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi karakartal,
Could you temporarily replace
-O /dev/null
...with
-O /tmp/output.txt
And then after the command has run, enter
cat /tmp/output.txt
This will show the actual output which may indicate the problem. If it does contain information (e.g. an error message) and you're still not sure let me know what is displayed and I'll take a look...
Cheers,
David.
--
PriceTapestry.com