Re: include not working properly?

From: Date: Tue, 07 Mar 2006 23:22:12 +0000
Subject: Re: include not working properly?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231624@lists.php.net to get a copy of this message
robert mena wrote:
Hi, I am facing a strange problem. One of my classes uses a include("Log.php") to enable to to use the Log class that comes with pear. *Fatal error*: require_once() [function.require<http://www.manaushoteis.tur.br/function.require>]: Failed opening required 'Log.php' (include_path='.:/usr/local/lib/php/:/home/httpd/html/php/:/home/httpd/html/include/php/') in */var/www/html/domain/php/Conexion.inc* on line *14* ** *I do have the Log.php* ** *ls -lsa /usr/local/lib/php/Log.php 20 -rw-r--r-- 1 root root 18563 Mai 25 2005 /usr/local/lib/php/Log.php*
The only difference I can see is that I don't have the / on the end of my include paths: include_path = ".:/usr/share/pear:/usr/local/php/lib/php" Try removing the / from the end of each folder and see what happens ? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231624) next »