[EMAIL PROTECTED] 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to