Home About Contact

This page is for testing out PHP code

Numerical hour:

Time on the ChargeRisk server is now 11:55

Here is the server timezone: America/Los_Angeles

Numerical hour: 2

Time in Houston is now 2:55

Here is my timezone: America/Chicago

Local time (Houston) is now 13:55

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

Here is a link to ./

Here is a link to /

Here is a link to ../

Here is a link to /images/

Here is a link to /oldSite/