FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Script to make files chmod themselves.

 


cr3ativ3
Is there a script that can make all the files in a certain folder chmod to 777 once there created? I understand there may not be because of security reasons but it there something in maybe the .htaccess file that would allow this.
deepak
If the folder and script both are 777 then you can create files with 777 through a simple php script.

Code:
<?php
chmod('mydir/myfile.myext', 777);
?>
Nyizsa
If you want files to have 777 (or any) permissions as soon as they are created, take a look at the umask command.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.