A. PHP.ini Max size, memory max and max upload are all at about 200 megs (to rule out any issues) B. Upload form is set to accept about 100 megs C. Time out is set to 9000 seconds in PHP.ini and IIS D. I am using windows 2000 Server and IIS and php 4.23
I added debugging code to my code that catches the file. It shows the actual variables my script will use. This is what it shows for a 4k text file.
C:\PHP\uploadtemp\php3F.tmp=temporary path 115=total size files.ini=true name
However when i upload a 284k text file.
=temporary path 0=total size dlrose.cgi=true name
I have had errors on files as small as 28k
Why is it now not working?
This is the excerpt of my debugging code. I am pretty sure it is right because it works for the small files. It looks like the temp directory is fine with permissions open for everyone.
Echo "<BR><BR><BR>Debugging data<BR> <BR>".$HTTP_POST_FILES['userfile']['tmp_name']."=temporary path <BR>".$HTTP_POST_FILES['userfile']['size']."=total size <BR>".$HTTP_POST_FILES['userfile']['name']."=true name ";
Yeah, i have it all set at enourmous numbers for now. Thanks for the tip on setting the time limit on a script by script basis, i will definitely do that, did not know that was there.
I also managed to fix it by using a clean copy of php.ini, the recomended one. Not really sure what happened to it but it was the cause. I also got it to upload 30 megs with a set limit of 120M.
As far as i can tell it was using its 4k cache to upload the files instead of putting it in the upload temp directory. At least that is the only reason i can think that small files under 4k were working.
Does anyone know how php handles multiple large uploads. Are they all put in memory.
Msg#: 1093 posted 10:35 pm on Oct 24, 2002 (gmt 0)
About those multiple uploads, I've done it with up to 12 files, each 3 or 4 MB and I didn't like how much it took to upload and I decided to use SFTP or SSH to upload the files and then use a web-based interface to put them in the database and in the directory they belong to.