Undefined variable: HTTP_POST_FILES

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Undefined variable: HTTP_POST_FILES

Postby Praew » 11. March 2010 10:18

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.
Praew
 
Posts: 2
Joined: 11. March 2010 09:50

Re: Undefined variable: HTTP_POST_FILES

Postby Altrea » 11. March 2010 10:35

$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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Undefined variable: HTTP_POST_FILES

Postby Praew » 12. March 2010 02:48

Thanks for your information Altrea.
Praew
 
Posts: 2
Joined: 11. March 2010 09:50


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 27 guests