Jump to content

copy function does not work


bettola

Recommended Posts

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?  :o

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.