I am using the following code:
- Code: Select all
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'] .'/WMS/configuration.php');
I am using this inside my .htaccess:
- Code: Select all
RewriteBase /KyleJ/
With cPanel, my htaccess was: RewriteBase
- Code: Select all
/~kylej/
Right now, it is giving me this error (on local environment):
- Code: Select all
Warning: include_once(/Applications/XAMPP/xamppfiles/htdocs/WMS/configuration.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/KyleJ/index.php on line 4
Anyone have any suggestions on how to get this to work correctly?
Even document root isn't working:
- Code: Select all
include_once('WMS/include/database.php');
I know the file is there, and it is displaying this error:
- Code: Select all
Warning: include_once(/WMS/include/database.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/KyleJ/index.php on line 6
Please help!!!