Re: Problem with require_once

From: Date: Fri, 07 Apr 2006 23:36:55 +0000
Subject: Re: Problem with require_once
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-233500@lists.php.net to get a copy of this message
can you do a dump of what $file is? Seems the path is incorrect. On 4/7/06, Pablo L. de Miranda <pablolmiranda@gmail.com> wrote: > > Hey Guys, > I have the code below: > > $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php'; > echo $file.'<br>'; > require_once($file); > > $service = ClassUtil::loadClass('service.FormularioService'); > > And the output in browser: > > http://localhost/egressos/util/ClassUtil.php > > Fatal error: Class 'ClassUtil' not found in > /home/pldm/projetos/egressos/src/controller/Controller.php on line 27 > > But, the file that I pass to require_once exist in the server... > If someone know the problem, please sende a answer... > > Thank you, > > Pablo > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

« previous php.general (#233500) next »