开发者

PHP copy() works on localhost(wamp) but not on my real web domain

开发者 https://www.devze.com 2022-12-11 08:52 出处:网络
ok so i\'m trying to copy file.xml into another location something like copy(\'file.xml\',../../folder/newfile.xml) ; it works just fine on my wamp virtual server but on my real site it doesn\'t. i th

ok so i'm trying to copy file.xml into another location something like copy('file.xml',../../folder/newfile.xml) ; it works just fine on my wamp virtual server but on my real site it doesn't. i thought that is something related to chmod and i changed the file.xml to 0777(with a ftp client).

i开发者_Go百科s there something that i should put in my code to make it right? or what?


Copy is a pretty straigtforward function. As Mark said, it's perhaps a host issue.


It might be that you don't have permissions to the folder you are trying to copy to or as mentioned your host doesn't give PHP necessary permissions for copy.

0

精彩评论

暂无评论...
验证码 换一张
取 消