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

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 ?

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

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.