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

PHP
🤖 Code Explanation
The code checks if the server is using HTTPS. If so, it prints "https". If not, it prints "http".

More problems solved in PHP





















The code checks if the server is using HTTPS. If so, it prints "https". If not, it prints "http".
Download SpellBox today Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.