Re: [PHP] Can I use $_REQUEST for file uploads?
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
Re: [PHP] Can I use $_REQUEST for file uploads?
On Thu, April 21, 2005 12:48 pm, Srinadh Sannidhanam said: Hi When I use $_REQUEST for accessing files uploaded, it is working fine in PHP PHP 4.3.10. But it is not working in PHP 4.3.4. $_FILES working in both the versions. Can I use $_REQUEST in PHP 4.3.10 also? Do I need to change any configuration in php.ini? server is Apache/2.0.49 Please help me in this regard. When $_REQUEST doesn't seem to work with file uploads, it almost always, in my experience, means I forgot the ENCTYPE=multipart/form-data on the FORM tag. D'oh! I did that several times, over the years, before it became a habit to type it for file uploads. YMMV -- 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
Re: [PHP] Can I use $_REQUEST for file uploads?
Hi, 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. Thanks, S.Srinadh. On 4/22/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, April 21, 2005 12:48 pm, Srinadh Sannidhanam said: Hi When I use $_REQUEST for accessing files uploaded, it is working fine in PHP PHP 4.3.10. But it is not working in PHP 4.3.4. $_FILES working in both the versions. Can I use $_REQUEST in PHP 4.3.10 also? Do I need to change any configuration in php.ini? server is Apache/2.0.49 Please help me in this regard. When $_REQUEST doesn't seem to work with file uploads, it almost always, in my experience, means I forgot the ENCTYPE=multipart/form-data on the FORM tag. D'oh! I did that several times, over the years, before it became a habit to type it for file uploads. YMMV -- 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
[PHP] Can I use $_REQUEST for file uploads?
Hi When I use $_REQUEST for accessing files uploaded, it is working fine in PHP PHP 4.3.10. But it is not working in PHP 4.3.4. $_FILES working in both the versions. Can I use $_REQUEST in PHP 4.3.10 also? Do I need to change any configuration in php.ini? server is Apache/2.0.49 Please help me in this regard. Thanks, S.Srinadh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can I use $_REQUEST for file uploads?
$_REQUEST should work fine with 4.3.10 IF $_FILES does not have any problems since both depend more or less on the same php.ini directives. Take a look at http://www.php.net/manual/en/reserved.variables.php#reserved.variables.files Cheers, Prathap -- Original Message --- From: Srinadh Sannidhanam [EMAIL PROTECTED] To: Sent: Fri, 22 Apr 2005 01:18:19 +0530 Subject: [PHP] Can I use $_REQUEST for file uploads? Hi When I use $_REQUEST for accessing files uploaded, it is working fine in PHP PHP 4.3.10. But it is not working in PHP 4.3.4. $_FILES working in both the versions. Can I use $_REQUEST in PHP 4.3.10 also? Do I need to change any configuration in php.ini? server is Apache/2.0.49 Please help me in this regard. Thanks, S.Srinadh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- End of Original Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php