PHP 4.0 Bug #7860: pb with copy($source,$dest) when $dest point on network disk
| From: | benoit dot martin at alcatel dot fr | Date: | Fri, 17 Nov 2000 08:45:57 +0000 |
| Subject: | PHP 4.0 Bug #7860: pb with copy($source,$dest) when $dest point on network disk | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38395@lists.php.net to get a copy of this message | ||
From: benoit.martin@alcatel.fr
Operating system: Windows NT
PHP version: 4.0.3pl1
PHP Bug Type: Network related
Bug description: pb with copy($source,$dest) when $dest point on network disk
Hi,
I have an Apache Server and PHP 4.0.3pl1 installed on WindowsNT.
I am trying to make the following script work
The pb is when the destination file is on c:\dir\$Fichier_dest it works
but when i use a virutal letter F:\ that point on a network computer,
the answer is unable to create file 'myfile' : permission denied !
and when a try the same thing in a MS-DOS window (copy c:\myfile.txt
f:\myfile.txt) it works !!!!!
does anyone can help me ????
the script :
<html>
<?
if ($Fichier && $Fichier != "none") {
echo "<U><B>Votre fichier :</B></U><BR>";
echo "Fichier sur serveur : $Fichier<BR>";
echo "Fichier envoyé : $Fichier_name<BR>";
echo "Taille : $Fichier_size<BR>";
echo "Type : $Fichier_type<BR>";
$Fichier_dest = "f:\\".$Fichier_name;
if (!copy($Fichier, $Fichier_dest)) {
print ("failed to copy $Fichier_dest <br>\n");
echo "$php_errormsg";
} else {
print ("$Fichier_dest copié...");
}
}
?>
<BODY>
<FORM ENCTYPE="multipart/form-data" METHOD="POST">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
Envoyer le fichier : <INPUT NAME="Fichier" TYPE="file">
<INPUT TYPE="submit" VALUE="Envoyer le fichier">
</FORM>
</BODY>
</HTML>
--
Edit Bug report at: http://bugs.php.net/?id=7860&edit=1