0

Hi.
I am using WAMP with following tools:
1. PHP 5...
2. MySQL 5...
3. Apache 2...

1. I don't have REMOTE_USER variable in my php.ini file, How can I include it in my php.ini
2. How to change the variable REMOTE_USER in php.ini, through PHP script?

Thanks

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by tanha
0

You can add it to the file. Then you can use ini_get() to retrieve the value.

Changing it is normally not possible, because it would require write access to your php.ini file. This comes with a lot of security issues.

What exactly are you trying to accomplish, maybe there is an other solution ?

0

Thanks for replying,
I got what I wanted, it means that the REMOTE_USER appears, when we use the .htaccess authentication....

Thanks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.