PHP - For secure HTTP connection

43 views

This trick force for a secure HTTP connection

  1. if (!($HTTPS == “on”)) {
  2. header (”Location: https://$SERVER_NAME$php_SELF”);
  3. }  



« PHP - Redirect to another page How to access MySQL with PHP »
Posted on Monday, March 9th, 2009 at 12:06 pm under PHP Tricks | RSS 2.0 Feed

Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?