Posted By

the_construct on 01/07/12


Tagged

url php https


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jbyerson
mtelligent


Check if URL is HTTPS in PHP


 / Published in: PHP
 

Check if URL is HTTPS

  1. <?php
  2.  
  3. if ($_SERVER['HTTPS'] != "on") {
  4. echo "This is not HTTPS";
  5. }else{
  6. echo "This is HTTPS";
  7. }
  8.  
  9. <?

Report this snippet  

You need to login to post a comment.