Re: PHP require_once() opens some files but not others in same library

From: Date: Tue, 07 Apr 2009 03:05:22 +0000
Subject: Re: PHP require_once() opens some files but not others in same library
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291151@lists.php.net to get a copy of this message
<snip>
Here are the warnings and the error that I get: Warning: Zend_Loader_PluginLoader::require_once() [function.Zend-Loader-PluginLoader-require-once]: couldn't resolve host name in /usr/local/php5/lib/php/library/Zend/Loader/PluginLoader.php on line 389
Why is this trying to load something via http (or ftp even)? "couldn't resolve hostname" is not something you get when you include or require a file locally.
when I hard code the absolute path on line 389 the first warning changes to Warning: Zend_Loader_PluginLoader::require_once() [function.Zend-Loader-PluginLoader-require-once]: URL using bad/illegal format or missing URL in /usr/local/php5/lib/php/library/Zend/Loader/PluginLoader.php on line 389
What is the absolute path you are putting in? It looks like a url according to the message. It should be a file path: /usr/local/php5/lib/php/library/Zend/blah/blah/blah -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#291151) next »