Re: php File upload

From: Date: Fri, 08 Aug 2008 07:48:08 +0000
Subject: Re: php File upload
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-277874@lists.php.net to get a copy of this message
Hello > on a linux system (Suese 10.2) with 1 GB memory its not possible to upload > via http a 1 Gb File. Thats no limit problem on my php config. i can look > the mem stats when uploading and the growing tmp file. If the temp file has > 900 MB, Main Memory free is 0 and the script aborts and php deletes the tmp > file. > > Why don't php use swap memory ? no need for swap my system OpenSuSE 10.3 512MB RAM my uploaded file -rw-r--r-- 1 wwwrun www 1000000000 8. Aug 09:39 mytestfile.out memory befor upload and during upload are nearly the same and no swap total used free shared buffers cached Mem: 510488 504728 5760 0 60728 301476 -/+ buffers/cache: 142524 367964 Swap: 2104432 28756 2075676 a du shows that the tmp file is greater as the memory du -h /tmp/phpMmAGdN 659M /tmp/phpMmAGdN and grows du -h /tmp/phpMmAGdN 663M /tmp/phpMmAGdN So i think your script is wrong maybe you trie to read the hole contend from the upload file in a variable so you reach the memory post your script ro see if its is correct. BR/Torsten

« previous php.general (#277874) next »