This demonstrates the results of a simple php script framed in html which shows EST Time and Date, visitors' IP address, and IP host.
Date and Eastern Standard Time (East Coast) is:
Thursday 21st of November 2024 04:35:10 AM
Your IP Address: 3.144.4.54
Host: ec2-3-144-4-54.us-east-2.compute.amazonaws.com
I wrote the php code first, then checked to be sure it worked. At the moment, I do not have php loaded onto my desktop computer, so I had to file transfer it to my GNU/Linux web server which does have php. It checked out okay, so I wrapped some html code around it, putting the php code in between the body tags. Finally, I saved the file as a .php rather than .html file and file transfered it to this web site. Note that if you use browser tools to review the code, it displays the results from the php but does not display the php code itself. This is intentional, and the way php is supposed to work.
Look for Default Page in this directory.
Find Default Page in a higher directory
SIMPLE PHP DEMO of Time and IP Address by AeroScore.