Re: Can I use $_REQUEST for file uploads?

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

 



> Thanks for the reponse. I tested again, but it was not the problem
> with ENCTYPE. I am getting file with $_FILES. I think this is due to
> CGI configuration if not with php.ini. Because when I check the
> version by using "PHP -v" command, it shows "4.3.10 (cgi)" but when
> check that using phpinfo() function, it is showing as PHP 4.2.2. Why
> the difference? I am working in that view to find the solution.
> Currently I got a temporary solution. I am jsut copying from $_FILES
> to $_REQUEST at the very begining of the script. Because I can't
> change all the scripts now.

Because you have two different versions of PHP installed. In
otherwords, the CGI version and most likely the module
version.

Now to answer your question, here's a quote from the 
PHP Manual:

 Note: Prior to PHP 4.3.0, $_FILES information was 
       also included in $_REQUEST.

So, $_FILES is no longer part of $_REQUEST.

Regards,
Philip

http://php.net/manual/en/reserved.variables.php#reserved.variables.request

-- 
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