Write a PHP script, to check whether the page is called from 'https' or 'http



http:-

Hypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting hypermedia documents, such as HTML. It was designed for communication between web browsers and web servers, but it can also be used for other purposes. HTTP follows a classical client-server model, with a client opening a connection to make a request, then waiting until it receives a response. HTTP is a stateless protocol, meaning that the server does not keep any data (state) between two requests.

https:-

HTTPS (HyperText Transfer Protocol Secure) is an encrypted version of the HTTP protocol. It uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, such as when performing banking activities or online shopping.



code:-


<?php if (!empty($_SERVER['HTTPS'])) { echo 'https site'; } else { echo 'http site'."\n"; } ?>

1 Comments

If you have any doubts, Please let me know
Thanks!

  1. Hi there,
    Thank you so much for the post you do and also I like your post, bank script php, online banking script, thecoders, crypto investment strategy, xcrow, php script definition, php scripting language, php script execution time, php script marketplace, php script benchmark, php script builder, php script encryption, php bank transaction script, php online bank script, XCROW bank script, e-banking php script, co investment, coinvestor services, online banking script, bitcoin investment script free download, loan management system php, ponzi script, bankia es online banking, bankia bank code, investment website script, complete online banking, investment website script, flash fund, bitmine with the well price and our services are very fast.
    Click here for MORE DETAILS......
    CONTACT INFORMATION
    Webmail : info@thecodersbrain.com
    Whatsapp Number: +44 7833 900001

    ReplyDelete

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post