Re: File upload problems using Apache 1.3 on Debian stable

From: Date: Mon, 13 Dec 2004 17:30:24 +0000
Subject: Re: File upload problems using Apache 1.3 on Debian stable
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-204199@lists.php.net to get a copy of this message
coding@digital-data.co.uk wrote: > Hi, > I do indeed have the file upload code inside a class function. it's one > of those little things about PHP hadn't fully realised yet. Thanks for > the pointer! If I pass the relevant _FILE entry to that function and > work off that it solves the problem right? You didn't actually type $_FILE instead of $_FILES did you?... $_FILES is a superglobal (but $HTTP_POST_FILES is not) so you should *not* need to declare it global, nor pass it in. $_FILE ain't nothin' at all. :-) If you want to catch errors like this, *change* your error_reporting level. http://php.net/error_reporting I sure wish php.ini default were changed to E_ALL in some major release version along the way. Sooooooo many newbie problems would disappear overnight if this the default. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#204199) next »