A web server environment is simulated by setting the XMake.conf variable: XMAKE_EXT_PHPC_GLOBAL_INC=/phpc.global.inc In this example, the file 'phpc.global.inc' is automatically included to set global variables
<?php
/*
This file can be used to simulate a server environment, setting $DOCUMENT_ROOT, etc.
Copy it to the root of an XMake project directory, then edit it as you like.

Do not set the following here, since they are set by phpc.mkh and will be overwritten:
    $_SERVER["PHP_SELF"]
    $_SERVER["SCRIPT_NAME"]
    $_SERVER["SCRIPT_FILENAME"]
    $_SERVER["PATH_TRANSLATED"]
    $HTTP_SERVER_VARS["PHP_SELF"]
    $HTTP_SERVER_VARS["SCRIPT_NAME"]
    $HTTP_SERVER_VARS["SCRIPT_FILENAME"]
    $HTTP_SERVER_VARS["PATH_TRANSLATED"]

*/

$_SERVER["DOCUMENT_ROOT"]=$HTTP_SERVER_VARS["DOCUMENT_ROOT"]="/usr/local/apache/htdocs/";

?>