Php copy() not working

My website URL is: http://craftycorpx.rf.gd/

What I’m seeing is: I can’t use copy() to duplicate an image, there is no error but the file doesnt get copied

I’m using this software: PHP

Additional information: I am new to php

The copy works in htdocs but when I try to copy in /assets/img/faces it doesnt work

I did some further testing and it seems like I can copy stuff in htdocs but not in any sub folder.

Is this the exact path you’re trying to copy to? If so, please be sure to note the difference between absolute URLs, relative URLs and web paths and file system paths. By using this exact URL, you’re trying to write to the folder assets at the root filesystem of the server, not of your website.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.