Win32 PHP Include help

From: Date: Thu, 15 Jun 2000 09:51:02 +0000
Subject: Win32 PHP Include help
Groups: php.general 
Request: Send a blank email to php-general+get-1912@lists.php.net to get a copy of this message
Help!!! I'm trying my hand at include files & can't get it to work! :( I'm using PHP4 on a Win2000 machine with Apache as the web server... No problems generally... Until now... DETAILS ======= Apache is installed at: c:\program files\apache I've stuck the include file I want in the 'lib' directory of Apache: c:\program files\apache\lib\includes\test.inc I've edited the php.ini file in c:\winnt to read: [...snip] ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; include_path = 'C:\Program Files\Apache\lib'; [snip...] And I've written a test file (test1.php4) that reads: [...snip] <?php print ("Testing an include file...<BR>\n"); include ("\\includes\\test.inc"); ?> I get the following result: -------- Testing an include file... Warning: Failed opening '\includes\test.inc' for inclusion (include_path=''C:\Program Files\Apache\lib'') in c:\program files\apache\htdocs\mysql_php\test1.php4 on line 18 -------- I've tried all sorts of variations of escaping, quotes, double-quotes etc. to try and get it to see the 'test.inc' file - but I'm failing miserably... Can anyone offer any advice??? Thanks in anticipation, Paul.

« previous php.general (#1912) next »