Le Tue, 14 Feb 2006 09:47:23 +1100, Chris a écrit :
> move_uploaded_file is "safe-mode aware" - it doesn't care whether
> safe-mode is on or off.
> You can only use move_uploaded_file like:
> move_uploaded_file($_FILE['blah']['tmp_name'], $destination);
> Check that your destination directory is writable.
thank you, but it still doesn't work.
here is the code:
if(!move_uploaded_file($_FILES['file']['tmp_name'], $path))
{
if (is_uploaded_file($_FILES['file']['tmp_name']))
echo "file ok <br>";
else
echo "file nok <br>";
}
1- when I turn the safe mode off, the move is OK
2- when I turn the safe mode on, the move is not OK, but the
is_uploaded_file in my code below returns OK.
3- I also tried to init $path with /tmp/mydestfile but it still does not
work.
.. I really don't understand.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php