Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
The error that I get is a "Permission Denied" Message !! --Puspinder On Wednesday, March 5, 2003, at 03:27 PM, Kevin Stone wrote: chmod($file, 0600); This sets the file to Owner read and write, Group nothing, Public nothing. If you're on a shared server then chances are this function has been

Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
Thanks Kevin I have tried to chmod the file ...but I need to give others the permission to read the file...or the script itself cannot open the file ! --Pushpinder On Wednesday, March 5, 2003, at 03:27 PM, Kevin Stone wrote: chmod($file, 0600); This sets the file to Owner read and write, Gro

Re: [PHP] File Access Rights

2003-03-05 Thread Kevin Stone
chmod($file, 0600); This sets the file to Owner read and write, Group nothing, Public nothing. If you're on a shared server then chances are this function has been disabled so you may have to FTP or SSH into your account and set the permissions for the file manually using the chmod command. Good

Re: [PHP] File Access Rights

2003-03-05 Thread Jason Wong
On Thursday 06 March 2003 03:51, Pushpinder Singh Garcha wrote: > My php script needs to read a text file that is stored in the same Dir > as the php file. However I do not want to allow users to be able to see > the contenst of the file from the Browser. Please suggest some remedy. If you're usi