Write a PHP script, to check whether the page is called from 'https' or 'http'.
<?php if (!empty($_SERVER['HTTPS'])) { echo 'https is enabled'; } else { echo 'http is enabled'."\n"; } ?>
Sample Output:
http is enabled
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer