dev_silent Posted August 16, 2009 Share Posted August 16, 2009 I am recently facing a strange problem. I have setup apache 2.2 in centOS with php 5.1.6. The ip of the box is 198.100.100.17 and the hostname is myserver. The Server Name, I have specified in httpd.conf is "mysite". If I try to access the site by the setvername ie. http://mysite, it will not display the $PHP_AUTH_USER & $PHP_AUTH_PW values, but if I use http://198.100.100.17, it shows both the values. I must have done something wrong in some confif file. Can anyone help me? Quote Link to comment https://forums.phpfreaks.com/topic/170508-strange-global-variable-issues/ Share on other sites More sharing options...
wildteen88 Posted August 16, 2009 Share Posted August 16, 2009 You should be using $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] Quote Link to comment https://forums.phpfreaks.com/topic/170508-strange-global-variable-issues/#findComment-899487 Share on other sites More sharing options...
dev_silent Posted August 17, 2009 Author Share Posted August 17, 2009 I have tried both, but when it works with ip, it should also work with stename. Quote Link to comment https://forums.phpfreaks.com/topic/170508-strange-global-variable-issues/#findComment-899778 Share on other sites More sharing options...
Lenovo Posted August 19, 2009 Share Posted August 19, 2009 Ok, somebody help me out here...When ever I try the SteamID login thing, it says "Incorrect login", Even though I am positive I'm typing in the right password and stuff. HELP! :'( comparatif simulation taux credit auto - Taux crédit auto. Comparatif des offres! Les meilleurs taux crédit auto sont sur le net !comparatif simulation taux credit auto Quote Link to comment https://forums.phpfreaks.com/topic/170508-strange-global-variable-issues/#findComment-901504 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.