Search found 4 matches
- Thu Apr 15, 2004 5:07 pm
- Forum: PHP - Code
- Topic: 2 problems with paths.
- Replies: 4
- Views: 236
2 problems with paths.
Hi, I have two really trivial sounding problems with paths. I am constructing a site on my Windows box with Minixampp (i.e. Apache) which I then move to my ISP (Unix with Apache). On some pages I'd like to use paths that are relative to my html root directory, e.g /Navigation/TreeMenu.php. I have Im...
- Mon Apr 05, 2004 4:40 am
- Forum: PHP - Code
- Topic: Redirect after cancelled or invalid user authentication?
- Replies: 5
- Views: 540
Hi, I experimented with .htaccess, but surprisingly I'm not getting very usable results. I have the following .htaccess: ErrorDocument 401 /index.htm AuthUserFile e:\minixampp\.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require valid-user I've placed this into a newly cre...
- Mon Apr 05, 2004 3:26 am
- Forum: PHP - Code
- Topic: Redirect after cancelled or invalid user authentication?
- Replies: 5
- Views: 540
Re: Redirect after cancelled or invalid user authentication?
Hi Pickle and Twigletmac, I tried both of your suggestions but to no avail. If I take use pickles code exactly, the user is prompted for the id/pw only once (!), and after failing, I guess PHP_USER_AUTH and PHP_USER_PW are set and the user is bounced immediately back to the index page and never gets...
- Fri Apr 02, 2004 6:37 am
- Forum: PHP - Code
- Topic: Redirect after cancelled or invalid user authentication?
- Replies: 5
- Views: 540
Redirect after cancelled or invalid user authentication?
Hi, I would like to protect a few pages of a site and I am using the code snippet that is available from about a million sites for user authentication. <?php if (!isset($_SERVER['PHP_AUTH_USER']) or !isset($_SERVER['PHP_AUTH_PW']) or ($_SERVER['PHP_AUTH_PW'] != "test")) { header('WWW-Authe...