Re: Re: WELCOME to pear-general@lists.php.net
| From: | Greg Beaver | Date: | Sat, 07 May 2005 04:38:54 +0000 |
| Subject: | Re: Re: WELCOME to pear-general@lists.php.net | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19093@lists.php.net to get a copy of this message | ||
Darren Ehlers wrote:
Here's the result: string(42) "/usr/local/lib/php" Warning: main(MDB2.php) [function.main]: failed to open stream: No such file or directory in /web/dc/html/index.php on line 8 Fatal error: main() [function.require]: Failed opening required 'MDB2.php' (include_path='/usr/local/lib/php') in /web/dc/index.php on line 8 The actual code is: <?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); var_dump(get_include_path()); require_once 'MDB2.php'; ?> When I change it to this, it works fine: <?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); var_dump(get_include_path()); require_once '/usr/local/lib/php/MDB2.php'; ?> There's got to be something on the server affecting it, as the paths all seem correct...Yeah, that's freaky weird. Try this and see if it works: <?php set_include_path('/usr/local/lib/php/'); // <-- note trailing / require_once 'MDB2.php'; ?> I doubt it will, but it's worth a try. Greg