PHP 4.0 Bug #7884: php and apache configuration to enable 'copy' to write on a network drive

From: Date: Mon, 20 Nov 2000 08:49:33 +0000
Subject: PHP 4.0 Bug #7884: php and apache configuration to enable 'copy' to write on a network drive
Groups: php.dev 
Request: Send a blank email to php-dev+get-38551@lists.php.net to get a copy of this message
From: benoit.martin@alcatel.fr Operating system: WindowsNT PHP version: 4.0.3pl1 PHP Bug Type: Apache related Bug description: php and apache configuration to enable 'copy' to write on a network drive 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 ! Whereas on the network drive all users have all rights ! 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 ???? Can somebody try this script on an apache server ?????? 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=7884&edit=1

« previous php.dev (#38551) next »