Chmod & security & authentication
| From: | Marijn Speelman | Date: | Sun, 16 Jul 2000 10:04:19 +0000 |
| Subject: | Chmod & security & authentication | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6808@lists.php.net to get a copy of this message | ||
Hi there,
I have a problem with chmod and PHP. I have a txt file 'database' but I
don't want people who know the name of that file be able to view that file.
I know you can chmod the file 660 so nobody can acces the file via your
browser. Perl reads and writes a file (with 660) correctly, but with PHP and
just can't read the file! What can I do to secure this file? (htacces is not
an option)
And another question: I have basic realm authentication, but I want to
logout a user. The PHP manual says some things about that, but that doesn't
work. How can I do that?
Also, when I want a user to re-login, I change the PHP_AUTH_USER, and the
page pops-up the login screen. Only, NO password or username matches after
that. Really irritating me :)
Hope you can help me (and sorry for the crappy english :))