|
OK, It seems to be related to the $_SERVER PHP superglobal.
Doing a print_r($_SERVER) going via the cpanel web server, and using the passthru presents a difference.
The HTTP_HOST entry is empty on the passthru and is populated on the cpanel web server method.
The SERVER_NAME var is also empty as opposed to the cpanel web server access method.
|