Re: Problem with require_once
| From: | chris smith | Date: | Fri, 07 Apr 2006 23:46:09 +0000 |
| Subject: | Re: Problem with require_once | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233503@lists.php.net to get a copy of this message | ||
On 4/8/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
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/