dave658 Posted April 16, 2009 Share Posted April 16, 2009 I recently had to re-install PHP om my IIS server, and now I am having a strange issue. Now anytime I run a PHP script, I need to login with a username and password. The PHP script I am running is just the following <?php echo "<H2>Under Construction<br>Please Come Back Soon</H2>"; ?> If instead, i browse to the equivalent html file <H2>Under Construction<br>Please Come Back Soon</H2> then this displays without any request to login This used to work before i re-installed PHP and I have made no changes to IIS so I am assuming that it is something I am missing in php.ini or someother configuration issue - can anyone advise ? Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/ Share on other sites More sharing options...
Asheeown Posted April 16, 2009 Share Posted April 16, 2009 Authentication would be all IIS, the php.ini file has nothing to do with that. Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-811970 Share on other sites More sharing options...
dave658 Posted April 16, 2009 Author Share Posted April 16, 2009 yes I understand that, but the HTML file I mention is in the same folder and has exactly the same security settings and does not request login - this is ONLY affecting php files Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-811974 Share on other sites More sharing options...
Asheeown Posted April 16, 2009 Share Posted April 16, 2009 Is the .php extension registered in your IIS settings? Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-811977 Share on other sites More sharing options...
dave658 Posted April 16, 2009 Author Share Posted April 16, 2009 yes it is registered, and it is probably worth mentioning that if I in fact login with a registered username and password, then all my PHP scripts work fine, but I don't want users to have to login in to view my website Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-812001 Share on other sites More sharing options...
keeB Posted April 17, 2009 Share Posted April 17, 2009 You're not providing enough information. Is this username/password something specific to your site or is it the HTTP username/password authorization scheme? Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-812050 Share on other sites More sharing options...
dave658 Posted April 17, 2009 Author Share Posted April 17, 2009 Apologies if I wasn't clear, the PHP I listed is not a code fragment, it is the entire file contents, there is no security code etc, as such, I can only assume that this is standard HTTP login mechanism Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-812115 Share on other sites More sharing options...
keeB Posted April 17, 2009 Share Posted April 17, 2009 Interesting. Well this is an IIS configuration issue then. Unfortunately, I'm not a windows user so I can't help. Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-812341 Share on other sites More sharing options...
keeB Posted April 17, 2009 Share Posted April 17, 2009 Moved to IIS forum Quote Link to comment https://forums.phpfreaks.com/topic/154425-driving-me-crazy/#findComment-812344 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.