Re: HTTP_POST_FILES undefined - What happen?
| From: | Tom Rogers | Date: | Thu, 25 Jul 2002 01:15:33 +0000 |
| Subject: | Re: HTTP_POST_FILES undefined - What happen? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109392@lists.php.net to get a copy of this message | ||
Hi,
Thursday, July 25, 2002, 10:39:08 AM, you wrote:
R> Hi all,
R> Thought I turned on register_globals on in the php.ini, my server didn't know the
R> HTTP_POST_FILES.
R> echo $HTTP_POST_FILES[$file]['type'] ;
R> echo $HTTP_POST_FILES[$file]['name'] ;
R> echo $HTTP_POST_FILES[$file]['size'] ;
R> I've always get these messages:
R> PHP Warning: Undefined variable: HTTP_POST_FILES in
R> c:\inetpub\wwwroot\ohabolana\scripts\sary_vaovao.inc on line 4 PHP Warning: Undefined variable:
R> HTTP_POST_FILES in
R> c:\inetpub\wwwroot\ohabolana\scripts\sary_vaovao.inc on line 5 PHP Warning: Undefined
R> variable: HTTP_POST_FILES in c:\inetpub\wwwroot\ohabolana\scripts\sary_vaovao.inc on line 6
R> Any suggestions ?
R> Ravelomanana Rija
R> rija@vatu.com
R> BP 1528 Port Vila
R> Vanuatu
If they are being used in a function you will need to do:
function whatever(){
global $HTTP_POST_VARS;
.
.
.
}
Just a guess :)
--
Best regards,
Tom