Re: $_FILES doesn't work but $_POST works

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

 



On 5/31/06, kartikay malhotra <kartikay.malhotra@xxxxxxxxx> wrote:
However, with Mbuni MMS Gateway (which provides HTTP POST),  the above
condition in if loop isn't satisfied. I think $_FILES isn't working. However
the following code works:

<?php

$in='/usr/share/wallpapers/alien-night.jpg';
$out='/tmp/alien.jpg';

if(isset($_POST['userfile'])/* || $_FILES['userfile']['size'] > 0*/ )
{

$f=fopen($out,'a');
echo "HELOOOOOOOOOOOOOOOOOOOO";
copy($in, $out);
}

?>

This implies, $_POST works, and a file has been uploaded. I  however, do not
know how to access it

Have you tried simply saving $_POST['userfile'] to a file?

Rabin

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