This page is for testing out PHP code
Numerical hour:
Time on the ChargeRisk server is now 01:47Here is the server timezone: America/Los_Angeles
Numerical hour: 2
Time in Houston is now 2:47Here is my timezone: America/Chicago
Local time (Houston) is now 03:47
Good morning!The current working directory is: /var/www/html/ch/chargerisk.com/phpSandbox
The _SERVER variable is very useful. Here is a table of what all of its indices return for this website
This is SERVER_NAME: chargerisk.com
This is SCRIPT_NAME: /phpSandbox/index.php
This is DOCUMENT_ROOT: /var/www/html/ch/chargerisk.com
There are also so-called *Magic constants* :
Here is DIR: /var/www/html/ch/chargerisk.com/phpSandbox
Here is FILE: /var/www/html/ch/chargerisk.com/phpSandbox/index.php
This one is not *magic* but seems related:
DEFAULT_INCLUDE_PATH: .:/usr/share/php
Now let's test some links in PHP