Re: Problems with require.

From: Date: Fri, 17 Dec 2004 14:42:45 +0000
Subject: Re: Problems with require.
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-25168@lists.php.net to get a copy of this message
S wrote:
Im having a problem that im assuming is related to my core PHP code rather than the pear file I am trying to include (though if you folks think I need to look into that, thats ok too). Basically im seeing the following when I try to load my page: Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\testing\Ch4\test_dbi.php on line 26 Fatal error: main() [function.require]: Failed opening required 'DB.php'
(include_path=':c:/wamp/www/PEAR:c:/wamp/www/phplib:c:/wamp/www/testing/ch4/class:.;C:\php5\pear')
I think you need to change your seperator to a semilcolon instead ;) Go to your php.ini (wherever you keep it) and change your include path to this: include_path='c:/wamp/www/PEAR;c:/wamp/www/phplib;c:/wamp/www/testing/ch4/class;.;C:/php5/pear' Forward slashes are not a problem for me, but then again I use Apache YMMV Strange, do you have two PEAR installations? You should only need one unless you're trying to maintain a testing tree and a production tree.

« previous php.windows (#25168) next »