You could either rename the file with a .php extension or you can have it so
the server treats .inc files like php files.

"David Hill" <[EMAIL PROTECTED]> wrote in message
> Hello
> If I have a file called with, for example, this:
> <?php
> //
> $user = "david";
> $pass = "password";
> ?>
> I have a my index.php do a include('');
> ok, that works.
> However, any user on the system can read cause its chmod'd 0644.
> If I chmod 0600 or even 0640, index.php can not include it.
> How do I go about protecting my files from being read by users on the
> Thanks
> - David

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to