|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-17 04:06 UTC] phildriscoll@php.net
[2000-11-17 09:37 UTC] phildriscoll@php.net
[2000-11-23 07:36 UTC] stas@php.net
[2001-06-03 01:14 UTC] sniper@php.net
[2001-06-21 23:41 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
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>