开发者

Permission denied while using mkdir on a windows server

开发者 https://www.devze.com 2023-01-01 11:47 出处:网络
the problem is, im using a leased windows server, and im trying to create a directory using php function mkdir, whichever path i try gives the same result.

the problem is, im using a leased windows server, and im trying to create a directory using php function mkdir, whichever path i try gives the same result.

im using absolute something like this.

mkdir('D:\Hosting\3105674\html\lepsiprisma\hola',0777);

this returns

Warning: mkdir() [function.mkdir]: P开发者_如何学Cermission denied in D:\Hosting\3105674\html\lepsiprisma\prueba.php  on line 2


The user that the webserver runs as, likely has no permissions to write in any of the directories under the web site (or server) root. You'd have to grant the right permissions to that user.

0

精彩评论

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