ijdenberger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 3:38 PM
Subject: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost
hey there,
I include files outside the document root in my site.
include $_SERVER['DOCUMENT_ROOT']."../in
Rolf,
> > the document_root just doesn't show up in my phpinfo();
> >
> > do windows machines have one anyway?
> > I have used this var before, just not testing it locally.
> >
> > It normally shows up when I use phpifno on the server.
Please check/compare the entries for doc_root = in the two P
ct: Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost
>
> the document_root just doesn't show up in my phpinfo();
>
> do windows machines have one anyway?
> I have used this var before, just not testing it locally.
>
> It normally shows up when I use phpifno
the document_root just doesn't show up in my phpinfo();
do windows machines have one anyway?
I have used this var before, just not testing it locally.
It normally shows up when I use phpifno on the server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
I use php 4.2.3
and only my pc is running xp, the server is a linux machine
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ff" <[EMAIL PROTECTED]>; "php-general"
<[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 3:50 PM
Subject: Re: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost
> yes, the server var doesn't exist in phpifno();
>
> no difference
> winxp pro with i
No, PHP version. With virtually no information, I'm going to guess that
you're using a version below 4.1, which is where the $_* variables were
introduced. Upgrade or use $HTTP_SERVER_VARS.
Rolf Vreijdenberger wrote:
yes, the server var doesn't exist in phpifno();
no difference
winxp pro wit
yes, the server var doesn't exist in phpifno();
no difference
winxp pro with iss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
December 18, 2002 3:38 PM
Subject: [PHP] $_SERVER['DOCUMENT_ROOT'] on localhost
>
> hey there,
>
> I include files outside the document root in my site.
> include $_SERVER['DOCUMENT_ROOT']."../inc.php" ;
>
> when I use this on the localhost i
hey there,
I include files outside the document root in my site.
include $_SERVER['DOCUMENT_ROOT']."../inc.php" ;
when I use this on the localhost it doesn't find this variable:
$_SERVER['DOCUMENT_ROOT']
which makes testing more annoying since I have to upload to my site all the
time.
any idea
10 matches
Mail list logo