I'm workin off a linux server. All the directorys in the root i'm working with are created from another web app that makes the correct user permissions. I'm having some difficulty though moving one file to another folder.
This is the error I keep getting
Warning: copy(/var/www/html/monkey/photos/albums/04-04): failed to open stream: Is a directory in /var/www/html/monkey/admin/monthalbumaction.php on line 138
And the code on 138 is this:
This is all one one line in the code.
copy("/var/www/html" . $row_image["daily_path"], "/var/www/html/monkey/photos/albums/" . $name);
The database row just contains the current path of the image.
/monkey/photos/daily/image.jpg
There something I'm missing?