Re: File Access Rights
| From: | Kevin Stone | Date: | Wed, 05 Mar 2003 20:27:17 +0000 |
| Subject: | Re: File Access Rights | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138354@lists.php.net to get a copy of this message | ||
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 luck.
- Kevin
----- Original Message -----
From: "Pushpinder Singh Garcha" <pgarcha@adelphia.net>
To: <php-general@lists.php.net>
Sent: Wednesday, March 05, 2003 12:51 PM
Subject: [PHP] File Access Rights
>
> Hello all
>
> 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.
>
> Thanks in advance
>
>
> Pushpinder Singh Garcha
> _________________________________
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>