Re: File upload problem

From: Date: Tue, 07 May 2002 20:38:56 +0000
Subject: Re: File upload problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-96482@lists.php.net to get a copy of this message
"Jason Wong" <php-general@gremlins.com.hk> wrote in message news:php.general-96480@news.php.net... > On Tuesday 07 May 2002 23:42, Linn Kubler wrote: > > I put the max file size tag into my code but that didn't help either. What > > looks like is happening is that the php file can't be found. I'm using > > phpscriptcenter's upload.php program and it is all in one script, if you > > know what I mean. > > > > What I'm seeing now is that, depending on the size of the file that I > > select to upload, it doesn't look like the form is being processed > > correctly. I changed the action of the form to point to a simple html file > > and I get the same results, page cannot be displayed. But this only > > happens when I pick a file that's 15MB or larger, pick a file that's > > smaller, in this case a few KB, and it works as expected. Not sure what to > > look for next. > > Older versions of php stores the whole file in memory before writing to disk. > Thus you should check the "memory_limit" setting in php.ini. And also check > that the "post_max_size" is not too low. > Hmm... which begs the question, what is the current version of PHP? I'm running 4.0.6-7, or at least that's the rpm installed on my server. I'll play with those settings at any rate and let you know if it has any effect. Thanks, Linn

« previous php.general (#96482) next »