Re: File upload problems using Apache 1.3 on Debian stable

From: Date: Fri, 10 Dec 2004 20:40:53 +0000
Subject: Re: File upload problems using Apache 1.3 on Debian stable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203959@lists.php.net to get a copy of this message
coding@digital-data.co.uk wrote: > Hi, > I have been having problems trying to get file uploads working with > PHP in a Debian Linux enviroment. I have ensured that both the temporary > directory PHP uploads use has the appropriate permissions set, as well > as the folder I am attempting to copy the images into. > > When I called phpinfo() from the page that the upload script is on it > shows the contents of the _FILE array as containing the appropriate > details, however when I try and access them from within my actual code, > the variables appear to be unset, and no files appear in either the > temporary folder or the folder I am trying to copy the file to. > > Anyone have any suggestions? Did you wrap your code up in a nice function? Perhaps you need: global $_FILES; inside that function. Or not. Still haven't worked out which $_XXX are super-global or not in which versions. Maybe someday. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#203959) next »