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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to