Jump to content

Recommended Posts

Posted

Hi,

 

I'm trying to copy a full folder from one location to another.

 

I've tried using the function described in the top comment of http://us.php.net/copy but i keep getting permission error.

 

I tried creating the destination folder in advance - still no permissions.

I tried giving the destination folder permission 777 , and still no permissions.

I've verified that the php files of the script are executable, but still not working.

 

Advice, anyone? Scripts do taht all the time, specifically in CMS system installations - where an upload creates a new folder.

 

What do i doooo?

Posted

Actually, I found my problem -- it was a particularly nastily hidden variable I just misspelled.

 

Took me a while to figure it out. Now it's working but it's still showing "permissions error" -- and yet, it's just a "notice" and it works.. I'll run it again and post the notices, but it seems to be working now, so.. I guess i'm good.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.