Jump to content

mkdir()


brad12345

Recommended Posts

this is the code im using

 

$folder = $_POST["folder"];

mkdir("image_files/$folder", 0777, true);

 

How come when i go to the ftp to see the file it has permissions 411 ???

the image_files folder has permissions set to 777

 

and the php script is inside the same directory as image_files

 

any help would be great thanks!  :)

Link to comment
https://forums.phpfreaks.com/topic/96126-mkdir/
Share on other sites

The problem, I think, is the account the the web server uses, which is usually not a root or admin account, does not have rights to set chmod. I imagine it is a linux server, so you can try johnska7's suggestion to do it manually after the directory is made and see what happens.

 

Ray

Link to comment
https://forums.phpfreaks.com/topic/96126-mkdir/#findComment-492199
Share on other sites

Archived

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

×
×
  • Create New...

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.