Forum Moderators: coopster

Message Too Old, No Replies

PHP Pear Problem

         

andrewsmd

9:35 pm on Jun 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have installed php on a windows server 2003 running iis 6.0. Using any php file works fine, but whenever I try to require pear it get this error.

Warning: require_once(pear.php) [function.require-once]: failed to open stream: No such file or directory in \\somecomputer\somefolder\test.php on line 6

Fatal error: require_once() [function.require]: Failed opening required 'pear.php' (include_path='.;C:\php5\pear') in \\somecomputer\somefolder\test.php on line 6

Here's what I can tell you. This website path within iis is a network drive. Basically IIS is on machine1 and the website somewebsite is pointing to a home path that is \\machine2\somefolder\www. I know I could just use require and not return an error but then that defeats the purpose because it still won't find the file. How do I tell my php engine to look on the local machine. Also, I noticed this part of the error include_path='C:\php5\pear' My php path is C:\PHP\PEAR but I cannot find that line anywhere in my php.ini file. Am I missing something here? Thanks,

coopster

1:11 pm on Jun 20, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Not a lot of IIS users around here I guess.

In Apache you set the ServerRoot which is different than the DocumentRoot. I'm guessing IIS is similar. PEAR configurations can be server-wide or local to the virtual host. I typically set the PEAR configuration server-wide. First, you need to view your php.ini for the server and see your include_path directive setting. Is it set correctly? If not, modify it and restart the HTTP server.