Can PHP get info from .htaccess

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Frederick
Forum Newbie
Posts: 13
Joined: Fri Nov 15, 2002 9:42 am

Can PHP get info from .htaccess

Post by Frederick »

The first page of my members area is a Perl script and has to stay that way, the other areas, about 5, are all PHP based. Im trying to make sure users just dont type in the URLs of the member areas and get direct access.

Can I use .htaccess with PHP? In Perl, once a user is authenticated we can use REMOTE_USER (I think its that one) to get the info and pass it to the script, but can PHP use the same info?


I thought about using sessions (Id have to learn how) but Im not sure if that would work here since Im starting out in a Perl script.

Any thoughts?
Post Reply