Hello.
I'm new here so I hope that this is the right place to post.
I have a script, to host images for the users.
That script, creates a folder inside the "/links" folder, so, it will be something like this:
"/links/xxxx
links/something"
and so on.
But theres a problem, the folders that the script automatically creates the folders with 777 permission, so, it won't be able to view for the users who share them. The folders must be in 755
I was in the php site, and found the chmod function.
It works something like this chmod ("dir", 755);
But this only chmod a directory.
How do I to chmod all the folders to 755 inside the /links folder with php code.
Note that I want this in PHP because the user makes the upload and it chmod the folder to 755 automatically.
I'm a kind of noob, so please explain it slowly :P
One more thing, sorry my bad english 
|