Page 1 of 1

Undefined variable: HTTP_POST_FILES

PostPosted: 11. March 2010 10:18
by Praew
Hi, anyone can help me
I'm newbie in XAMPP,

code in php file like this:
$path1= $HTTP_POST_FILES['ufile']['name'][0];

how to config Apache file in Xampp?

Thanks for help
Praew.

Re: Undefined variable: HTTP_POST_FILES

PostPosted: 11. March 2010 10:35
by Altrea
$HTTP_POST_FILES is outdated

Since PHP 4.1 there is a new Superglobal Array: $_FILES.

Read more:
http://www.php.net/manual/en/features.file-upload.post-method.php

Re: Undefined variable: HTTP_POST_FILES

PostPosted: 12. March 2010 02:48
by Praew
Thanks for your information Altrea.