Re: copy file from server to shared network folder

From: Date: Fri, 20 Apr 2007 03:25:23 +0000
Subject: Re: copy file from server to shared network folder
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253313@lists.php.net to get a copy of this message
Hi, Friday, April 20, 2007, 2:04:14 PM, you wrote: HH> Hi everyone, HH> I can't seem to be able to copy a txt file from the server over to a network HH> drive. HH> Server is apache on winxp and the remote PC is also running XP. HH> Remote folder is shared with all read/write rights enabled. HH> I also tried executing a bat file where the bat file contains the copy HH> command and that didn't work either. HH> 2x clicking on the bat file works. HH> I tried HH> echo exec("c:\\test.bat"); HH> and also HH> echo system ("c:\\test.bat"); HH> and HH> exec('c:\Windows\system32\cmd.exe /c START c:\test.bat'); HH> and HH> exec('c:\\Windows\\system32\\cmd.exe /c START c:\\test.bat'); HH> with no success. HH> The last 2 items did launch the cmd process. HH> Any ideas? Apache won't have rights to access the network, you need to read: http://httpd.apache.org/docs/1.3/win_service.html -- regards, Tom

« previous php.general (#253313) next »