| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
Can PHP alter a file's permissions?
I have written a CMS system (with the help of all of you who had posted replies to me! Thanks!) that adds/modifies/deletes rows (pages) within a database (site).
My next thing is to make the CMS system load up HTML or text files and edit them!
I know that using the fopen command and the write commands, the CHMOD of the file has to be writeable, but this opens up a security flaw.
Is there anyway that a PHP command could change the CHMOD of a file before it is opened to make it writable and then change it back to just read?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved