Variables in .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
Cyphonic
Forum Newbie
Posts: 13
Joined: Sun Aug 18, 2002 1:29 pm

Variables in .htaccess!

Post by Cyphonic »

Are there any ways of transferring variables from the .htaccess file to a new script?

Say I have a multi user system. A user logs in and want to write something in my forum, so when he gets to the "post new thread" page, I want the username to be already set as default-value in the text box..

Is this possible? :?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

please clarify.
Do you want the login the user used when getting access to a .htaccess-auth-restricted site? if so, take a look at $_SERVER['PHP_AUTH_USER'] or write a php-based login
Post Reply