What is HTTP? HTTP stands for Hypertext Transfer Protocol and is the way in which data is sent over the Internet. It is an protocol that sets the rules for…
Read More
What is HTTP? HTTP stands for Hypertext Transfer Protocol and is the way in which data is sent over the Internet. It is an protocol that sets the rules for…
Check HTTP or HTTPS protocol in PHP You might be in some case need to check HTTP or HTTPS status of requested URL.
1 2 3 4 5 6 7 8 9 10 |
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { // HTTPS } else { // HTTP } |
SSL Certificate Installation Instructions & Tutorials An SSL certificate serves as a digital “passport” that allows data to be transmitted over secure networks in encrypted form to protecting financial and…