FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
Moveable Type Install
PHP Sessions
PHP Image suddenly doesn't work?
How to protect your (phpnuke(platinum)) site/community best?
Why some script tags must put in the head of document?
Who's using HTML Kit?
I have a question regarding forms and such.
Joomla Problem!
Help please,"Forbidden You don't have permission to acc
phpBB
PhpNuke Installation Tutorial
Recent PHP problems
Malicious script I can't seem to get rid of...
Not able to delete a template
Reply to topic    Frihost Forum Index -> Scripting -> Others

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