bettola Posted July 13, 2007 Share Posted July 13, 2007 Hi Guys, I have a problem, i've made a program that simply copy dirs and sub dirs from a local folder to a public folder on a server. Theese folders are both labeled by letters, because on the LAN, public folders are mapped on computer folders. So i Have the c: (local drive), the d: (cdrom) e:(public lan folder) I use a function that make copies which I found on php.net. At the row: if(!@copy($path, $dest . '\\' . $file)){ echo '<font color="red">File ('.$path.') could not be copied to ('.$dest . '\\' . $file.'), likely a permissions problem.</font>'; script ends if I specify like destination path, a path on the public folder(E:). Everythings is gonna worked if I specify local path(C:) How I can solve? Quote Link to comment Share on other sites More sharing options...
tapos Posted July 13, 2007 Share Posted July 13, 2007 Check the access of the folder/drive. -- Tapos Pal Quote Link to comment Share on other sites More sharing options...
bettola Posted July 13, 2007 Author Share Posted July 13, 2007 It's clear that if I manually copy the file, the operation works. I try to add directory on apache configuration file. If I add root public directory server restart correctly. If I put the complete path to my folder, apache doesn't restart Quote Link to comment Share on other sites More sharing options...
bettola Posted July 13, 2007 Author Share Posted July 13, 2007 I try with apache off, simply by php command line to execute the script but i receive same error. It seems that it isn't a web server problem, maybe there is something to set in php.ini Quote Link to comment Share on other sites More sharing options...
bettola Posted July 16, 2007 Author Share Posted July 16, 2007 up Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.