samsbc12 Posted February 13, 2007 Share Posted February 13, 2007 I want to display information if and only if the page is a secure connection i have been trying if(substr($_SERVER["SCRIPT_URI"],0,5)!=='https'){ echo "<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"> </script> <script type=\"text/javascript\"> _uacct = \"UA-1\"; urchinTracker(); </script>"; } ?> to know prevail not sure if my firewall is blocking stuff and if thats the case I need a php code that won't be blocked by firewalls Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 I have no idea, but your grammar makes it very hard to understand. I think you mean "to no avail". know is something you do with knowledge. No is the opposite of yes. prevail is something that keeps on going, avail is something of use. Quote Link to comment Share on other sites More sharing options...
samsbc12 Posted February 13, 2007 Author Share Posted February 13, 2007 I have no idea, but your grammar makes it very hard to understand. I think you mean "to no avail". know is something you do with knowledge. No is the opposite of yes. prevail is something that keeps on going, avail is something of use. I am sorry and Thank you very much for correcting me, I mean it too. I always want to try and better myself, I do not want to sound like an idiot. Basically what I want to do is see if the site is on a https connection vs http so that I can act accordingly. Quote Link to comment Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 not sure if my firewall is blocking stuff https is generally served through port 443 so make sure its not blocked. Not much you can do about it I'm afraid. jesirose, please remember that not everyone is a native English speaker, sometimes there are reasons for a persons gramer being a little off. Quote Link to comment Share on other sites More sharing options...
samsbc12 Posted February 13, 2007 Author Share Posted February 13, 2007 I am a native English speaker. I was just focusing on two things at once. Psh men. Anyways its not my firewall forget I said that. Is it possible to see if the url that is loaded is https or http? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 Check out this: http://us3.php.net/manual/en/reserved.variables.php 'HTTPS' Set to a non-empty value if the script was queried through the HTTPS protocol. Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol. So you can use $_SERVER['HTTPS'] thorpe - he thanked me! If I make a mistake, I'd rather know about it than continue to make it. Obviously he speaks some english and uses it enough that he can post here, so better to know and learn than to keep using the wrong words. If a kid always says blue for red, you correct them and they learn, you don't just let them think red is blue. PS: You said gramer :-P Quote Link to comment Share on other sites More sharing options...
samsbc12 Posted February 13, 2007 Author Share Posted February 13, 2007 Thank you very much. BTW I am a native English speaker... I just don't spell check, but I promise to work on it =). Also I did not think you were not out of line. Quote Link to comment Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 Also I did not think you were not out of line. Thats a double negative. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 13, 2007 Share Posted February 13, 2007 *rotf* Quote Link to comment 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.