Chris,
That is a very good point. As stupid as it sounds, I forgot about the
include() statement (still new I guess, not used to all this extra cool
stuff!).
When I was suggesting the .htaccess, I was thinking more of the require
valid-user and thinking maybe the php could tell it whether it is
Hello,
I'm fairly new to PHP, but I am studying (ORA's Programming PHP). I am
trying to do something but can't quite figure out how.
Here is what I need to do:
User goes to an address. They login with say jsmith and their password.
the PHP script gets authenticates against a MySQL database. I
Message-
From: Bryan Koschmann - GKT [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:56 AM
To: PHP General
Subject: [PHP] authenticating and redirecting with special access
Hello,
I'm fairly new to PHP, but I am studying (ORA's Programming PHP). I am
trying to do something
Bryan,
A .htaccess file is a Web server configuration file. It cannot know what
sort of PHP code you have in place to authenticate a user. :-)
As has been suggested by someone else, you should place your restricted
files outside of document root. In PHP, it is a simple matter of an
include()
4 matches
Mail list logo