PHP
PHP : get Request protocol Http or HTTPS
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; }
Plesk 9.2.1 FastCGI Apache Error
First of All This solution is for Linux based OS. I did it on centOS 4 x64 Running Plesk 9.2.1. Well, If you every come across the FastCGI issue with Plesk Apache and looking for a solution, I’m sure following could help you a lot. Problem occurs when you set-up a Domain to Run PHP [...]
PHP URL Validate using RegEx
After going through lots and lots of url validation scripts, I come across this wonderful and easy RegEx validation script works perfectly. This information has been posted in phpcentral by fqa. Amazingly author has also given detailed information for switching how a URL should be. For example, http://localhost is a VALID URL and you may [...]
Recent Comments