Re: File upload problems using Apache 1.3 on Debian stable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



coding@xxxxxxxxxxxxxxxxxx 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux