bloody error
hope something here may help you...
  • Home
  • Apache
  • C++
  • Linux
  • Mac OS X
  • Networking
  • PHP
  • Tips
  • Windows
Browse: Home / code

code

PHP : get Request protocol Http or HTTPS

By Jeevan on September 18, 2009

How to get Requested protocol Http or HTTPS in PHP? This function will return True if HTTPS when called… is_https() { return strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))==’https’? true : false; } is_https() { return strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))==’https’? true : false; }

Posted in PHP | Tagged code, PHP, protocol | Leave a response



Recent Comments

  • Lola on Split & Concat Snow Leopard Error : (-2753) The variable thePanel is not defined
  • fares on Object doesn’t support this property or method
  • ashish on Installing Windows XP over Linux Fedora Core over Windows Vista
  • Cameron on Split & Concat Snow Leopard Error : (-2753) The variable thePanel is not defined
  • Jeevan on Unix shell command to Detect DDoS attack

Tags

.htaccess administrator Apache Apple Mac bootloader boot loader C++ command Dual boot Error Fedora Core GRUB hosts httpd IE8 install installation Internet Explorer Leopard Linux Mac OS X MBR MFC Microsoft moving domain network OS X PHP programming redirect RegEdit RegEx Rescue server shell Snow Leopard URL validate URL validator Vista Visual Studio VS VS 2005 Windows Wizard XP

Copyright © 2010 bloody error.