Jump to content

PHP Copying full folder to another folder

Featured Replies

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?

  • Author

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.