On 4/8/06, Pablo L. de Miranda <pablolmiranda@xxxxxxxxx> 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 This is a different file - is it included by $_SERVER['HTTP_REFERER'].'util/ClassUtil.php' ? PS - Relyig on the referrer for something like this is extremely dangerous. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php