RE: [PHP] Environment variables
| From: | Paco Martinez | Date: | Mon, 30 Oct 2000 11:57:35 +0000 |
| Subject: | RE: [PHP] Environment variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22664@lists.php.net to get a copy of this message | ||
> Hi Paco!
> On Fri, 27 Oct 2000, Paco Martinez wrote:
>
> > Estimated gurus...
> >
> > I have updated php 3.0 to 4.0.3pl.
> > First lines from all pages .php includes:
> > <? include $DOCUMENT_ROOT . "xxxx.inc" ?>
> >
> > And now I have an error:
> >
> > Failed opening '/cabecera.phi' for inclusion (include_path='./')
> >
> > Even I do a page with this text:
> > <? echo $DOCUMENT_ROOT ?> and the result is "".
> >
> > How can I solve it??
> was it on Windows, and was it php.ini-optimized?
> wild guess :)
> do you have `register_globals on'?
> ain't that great to have it on, but it should work for your pages.
>
> -- teodor
>
Putting register_global = On works on...
Thank you very much, Teodor ....