questo script:
mi genera un bellissimo warning: Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 470 bytes) in /store/domains/pippo/import-out.php on line 22codice:$__fname="importare.txt"; $__f=file($__fname); $__aqs=array(); // intestazioni $__head=explode("\";\"",substr(rtrim($__f[0]),1,-1)); $__sql="INSERT INTO cc_outbound (".implode(",",$__head).", DATA) VALUES "; //valori for ($i=1;$i<=sizeof($__f);$f++){ $__body=explode("\";\"",substr(rtrim($__f[$i]),1,-1)); $__sql.="('".implode("';'",$__body)."', NOW())"; } echo $__sql." $i";
com'è possibile?![]()
contando che il txt è di 91 kb...
se tolgo il ciclo non mi dà nessun errore, ma non lo posso togliere...come posso ottimizzare?
Grazie mille per ogni aiuto!

Rispondi quotando