Hi all,
I need to know how to set permissions on text files.
The files are created dynamically so I need to set the permissions as the files are created.
I basically want my php script to still be able to read/write to the files, but not allow someone to access the file by url
Cheers
setting file permissions
Moderator: General Moderators
-
clearmedia
- Forum Newbie
- Posts: 3
- Joined: Wed Jun 18, 2008 10:55 pm
Re: setting file permissions
all good people...
found out all i had to do was put the files outside the doc root then access them via $_SERVER['DOCUMENT_ROOT']."../somefile.txt";
Hope this may help someone else!
found out all i had to do was put the files outside the doc root then access them via $_SERVER['DOCUMENT_ROOT']."../somefile.txt";
Hope this may help someone else!