php - Change document root via .htaccess issue -
php - Change document root via .htaccess issue -
when echo out document root this: /etc/httpd/htdocs
however error, when seek run website:
no such file or directory in /vhost/vhost14/i/n/d/domainname.co.uk/www/testme.php
on line of code
require_once($_server['document_root']."/_cmsscripts/_init.php");
if replace $_server
/vhost/vhost14/i/n/d/domainname.co.uk/www/
works, i've got loads of pages , don't want have go around , alter whole site. first time i've had issue , not sure how around it.
probably document root not current website in vhost configured or follow_symlinks
not enabled.
anyway, in order find things below current file, may use:
require_once(dirname($_server['php_self'])."/_cmsscripts/_init.php");
obviously, document root can not changed .htaccess
security reasons
php .htaccess
Comments
Post a Comment