php3-list | 2000051
Date: 05/03/00
- Next message: Dave: "Re: [PHP3] new comer of php programming"
- Previous message: idban secandri: "Re: [PHP3] new comer of php programming"
- In reply to: Zack Beatty: "[PHP3] $DOCUMENT_ROOT !!!!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$DOCUMENT_ROOT is an apache variable, ie not set if your using IIS or PWS.
For a recent project I did that had to be completely platform independant I
had the line:
if (!isset($DOCUMENT_ROOT)) $DOCUMENT_ROOT = "c:/path/to/files";
at the top of my auto-prepend file. This way users on IIS etc simply need to
set this path correctly, users on Apache dont have to bother.
Adam Robertson
==============
Web Application Developer
http://www.elitemedia.co.uk
>-----Original Message-----
>From: Zack Beatty [mailto:ZackB <email protected>]
>Sent: 02 May 2000 22:24
>To: PHP List (E-mail)
>Subject: [PHP3] $DOCUMENT_ROOT !!!!!!!!
>
>
>I am trying to use the $DOCUMENT_ROOT variable, yet it doesn't seem to
>return anything.
><?
>print($DOCUMENT_ROOT);
>?>
>This doesn't print anything!
>Any ideas?
>-zb
>
>> __________________________________________
>> Zack Beatty | Enterprise Software Consultant
>> zackb <email protected>
>>
>> http://www.MaMaMedia.com
>> Named one of the "100 Best Sites for 2000,"
>> Yahoo! Internet Life, January 2000.
>>
>> MaMaMedia, Inc.
>> 110 Greene Street, 3rd Floor
>> New York, NY 10012
>> Phone: 212.334.3277 x477
>> Fax: 212.334.3276
>>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
>To search the mailing list archive, go to:
>http://www.php.net/mailsearch.php3
>To contact the list
>administrators, e-mail: php-list-admin <email protected>
>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dave: "Re: [PHP3] new comer of php programming"
- Previous message: idban secandri: "Re: [PHP3] new comer of php programming"
- In reply to: Zack Beatty: "[PHP3] $DOCUMENT_ROOT !!!!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

