This line
require_once($_SERVER['DOCUMENT_ROOT'] . '/api/database/databaseCommon.php');
gives the error
PHP Fatal error: require_once(): Failed opening required '/api/common/RequireCommonStuff.php' (include_path='
I am testing on localhost
, using Xampp and can't find the configuration option in Eclipse to set $_SERVER['DOCUMENT_ROOT']
to localhost
or its path on my harddrive.
Looks like you have undefined document root. You have to follow apache configuration, check your vHost definition.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.