Re: pb with copy($source,$dest) when $dest point on network disk

From: Date: Thu, 16 Nov 2000 19:59:46 +0000
Subject: Re: pb with copy($source,$dest) when $dest point on network disk
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38373@lists.php.net to get a copy of this message
Can you please submit a bug report on that (http://bugs.php.net)? It should be possible to solve it. Zeev At 18:16 16/11/2000, Benoit Martin wrote:
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 : <? if ($Fichier && $Fichier != "none") { echo "Votre fichier : "; echo "Fichier sur serveur : $Fichier "; echo "Fichier envoyé : $Fichier_name "; echo "Taille : $Fichier_size "; echo "Type : $Fichier_type "; $Fichier_dest = "f:\\".$Fichier_name; if (!copy($Fichier, $Fichier_dest)) { print ("failed to copy $Fichier_dest \n"); echo "$php_errormsg"; } else { print ("$Fichier_dest copié..."); } } ?> Envoyer le fichier : -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Zeev Suraski <zeev@zend.com> CTO, Zend Technologies Ltd. http://www.zend.com/

« previous php.dev (#38373) next »