checkHost
function is created.
It checks if the HTTP host is located at undcemcs01.und.edu
, for example.
If it is not, an exception is thrown.
checkHost
function is called in a “try” block.
The HTTP host is found by using the PHP variable $_SERVER
.
checkHost
function is thrown.
$e
) containing the exception information
$e->getMessage
from the exception object.
strstr(string,search)
searches for the first occurrence of a string inside another string.
New York is an exciting town where something is happening all the time, most of it unsolved. — Johnny Carson |