On 5/31/06, kartikay malhotra <[EMAIL PROTECTED]> 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