Zitat von
EVXN
php.ini musst du memory limit erhöhen
Jupp, hab den EIntrag in der php.ini gefunden und geändert.
Muss ich den Wert, Sorry für die blöden Fragen ick bin sowat von raus aus der Materie, muss mich erst wieder einfuchesen, so hoch ansetzen so dass die entpackte ZIP Datei hinhaut von der Größe her?
Hab den Wert jetzt auf 900MB gesetzt.
Ich versuch mal ob das klappt...
Meld mich hier mitm Edit zurück wenn ich weitere Probleme hab...
Gruß
Scotty
Edit Scotty 09:34 Uhr:
Was kann da dran so schwer sein...
Bekomme nun diese Medlung angezeigt...
PHP-Code:
Fatal error: Allowed memory size of 943718400 bytes exhausted (tried to allocate 702477821 bytes) in D:\Private Sachen\XAMPP\phpMyAdmin\libraries\import.lib.php on line 269
Und in der imort.lib.php in Zeile 269 steht:
PHP-Code:
$GLOBALS['import_text'] = substr($GLOBALS['import_text'], $size);
PHP-Code:
switch ($compression) {
case 'application/bzip2':
$result = bzread($import_handle, $size);
$GLOBALS['finished'] = feof($import_handle);
break;
case 'application/gzip':
$result = gzread($import_handle, $size);
$GLOBALS['finished'] = feof($import_handle);
break;
case 'application/zip':
$result = substr($GLOBALS['import_text'], 0, $size);
$GLOBALS['import_text'] = substr($GLOBALS['import_text'], $size);
$GLOBALS['finished'] = empty($GLOBALS['import_text']);
break;
case 'none':
$result = fread($import_handle, $size);
$GLOBALS['finished'] = feof($import_handle);
break;
}
$GLOBALS['offset'] += $size;
Welche Größe muss ich denn nun noch ändern bin hier am verzweifeln aber die entpackte XML Datei ist 700MB groß und beinhaltet 1,7 Millionen Datensätze. Ob ich diese XML Datei inne DB bekomme ist mir noch fraglich...
Hoffe auf eure Mithilfe.
Danke schon mal an Euch.
Edit 9:45 Uhr:
Hab jetzt versucht die XML Datei zu importieren aber da bekomme ich diese Meldung:
PHP-Code:
Warning: POST Content-Length of 702511780 bytes exceeds the limit of 134217728 bytes in Unknown on line 0
Gruß
Scotty
- - - - - - - - - - Beitrag nachträglich erweitert - - - - - - - - - -
Ahhhh, ich muss ja noch in der PHP.ini
upload_max_filesize,
memory_limit
and
post_max_size
ändern,
mal schauen ob es nun klappt... xD
PHP-Code:
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2000M
; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 2000M
; Maximum amount of memory a script may consume (standard - 2000MB)
; http://php.net/memory-limit
memory_limit = 2000M
So alle werte auf 2000MB gesetzt...
Mal schauen ob es jetzt klappt...
Gruß
Scotty
Edit 9:55Uhr:
Man ey wat ist denn nun wieder los...
Immer noch diese Meldung:
PHP-Code:
Warning: POST Content-Length of 702511780 bytes exceeds the limit of 134217728 bytes in Unknown on line 0
Ich hab gelsenen das ich die XML Datei Parsen soll z.B. mit expat für Windows. Aber da von hab ich keinen blassen Schimmer
Gruß
Scotty