setting the document root path in linux
| From: | tbt | Date: | Wed, 19 Sep 2007 07:11:10 +0000 |
| Subject: | setting the document root path in linux | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-262227@lists.php.net to get a copy of this message | ||
Hi
I'm a newbie to php and I'm using
require_once($_SERVER['DOCUMENT_ROOT']."/includes/class.announcement.php");
to import pages in php. This works fine on a windows environment. However
when I move this application to a linux environment the files dont get
imported properly. This is because in a windows environment
$_SERVER['DOCUMENT_ROOT'] returns c:/xampp/htdocs etc.
but in a linux environment returns /home/servers etc.
How can this be rectified so that the path is properly picked up in a linux
environment
--
View this message in context: http://www.nabble.com/setting-the-document-root-path-in-linux-tf4479174.html#a12771923
Sent from the PHP - General mailing list archive at Nabble.com.