RE: [PHP-WIN] Failed opening - NT4 SP6a, O'Reilly WebSite Pro 2.5, PHP4

From: Date: Tue, 20 Feb 2001 14:02:57 +0000
Subject: RE: [PHP-WIN] Failed opening - NT4 SP6a, O'Reilly WebSite Pro 2.5, PHP4
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5652@lists.php.net to get a copy of this message
include works like this: if your include_path starts with ".", any document with an "include" in it looks in it's own directory for the included file. if it doesn't find it, it looks for the next entry in include_path and looks there. If it can't find it anywhere, you get the error you're seeing. On WIN/NT, the paths are separated by semicolons, and need to include the drive letter. So your include_path entry should look something like this: include_path = ".;e:\my_include_directory\" don't forget to use quotes. PHP is capable of including files on other servers--see the PHP manual on "include". This will answer your questions on what include does, and then you should understand more about why include_path is important. DB | -----Original Message----- | From: Bob Ferguson [mailto:bobf@sounddata.com] | Sent: Monday, February 19, 2001 10:19 PM | To: php-install@lists.php.net; php-windows@lists.php.net | Subject: [PHP-WIN] Failed opening - NT4 SP6a, O'Reilly | WebSite Pro 2.5, | PHP4 | | | Sorry for the cross-post, but I'm getting a bit desperate | here. I've read | through the archives of both lists and tried the | suggestions there, but | nothing is helping. I continue to get: | | Warning: Failed opening '\\host\share\domain-name\htdocs\formmail.php' for inclusion (include_path='') in Unknown on line 0 I even created a page that had no PHP, just to see if I could get it to load (trying to remove the chance of coding errors), but got the same problem. include_path is blank, though I've tried several different options of pointing to the Web root, the PHP directory and using the "." -- all with the same result. doc_root is pointed to the Web root -- \\host\share\. user_dir is blank extension_dir is pointed to the location on the Web server where the extensions are located -- "c:\php4\extensions\". I should point out that the Web files are located on a separate machine, but the account that WebSite runs under has rights to that location. Honestly, I've not been able to complete understand the include_path. Why do I need it? What am I including? Help on this would be greatly appreciated as the client is getting toasted that this is not running. Thank you. Bob Ferguson Sound Data, Inc. 1467 Elliott Avenue West, Seattle, WA 98119 Voice: +1 206.283.0600 Fax: +1 206.283.0782 Providing Web site design and hosting services (http://www.sounddata.com) and developers of Internet ArtResources (http://www.artresources.com), ArtWatch Art Management Systems (http://www.sounddata.com/artwatch/) and the intervault Data Backup System (http://www.sounddata.com/intervault/). -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#5652) next »