Re: How are absolute includes supposed to work?

From: Date: Wed, 01 Oct 2003 17:14:12 +0000
Subject: Re: How are absolute includes supposed to work?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-11990@lists.php.net to get a copy of this message
Karl Widde wrote: > Hi > > I using PHP (CGI) 4.3.3 on a win2k server with IIS 5.0. Ive got a php.ini > with include_path = "f:\web\folderA\folderB\" and a Site defined in IIS with > that has the same home dir. If I try to include myFile2.php from > f:\web\folderA\folderB\folderC\folderD\myFile1.php using > > include("\folderE\folderF\myFile2.php"); - Dont work. I guess that "\folderE\folderF\myFile2.php" is just an example, not the real path? Does echo "\folderE\folderF\myFile2.php"; with the real path work? You should either use single quotes or escape the backslashes: include('\folderE\folderF\myFile2.php'); include("\\folderE\\folderF\\myFile2.php"); See <http://www.php.net/manual/en/language.types.string.php>. Please ask again if that was not your problem. Regards... Michael

« previous php.install (#11990) next »