RE: [PHP] $DOCUMENT_ROOT -- didn't work from a class..
| From: | Vamsi Nath | Date: | Wed, 30 Aug 2000 08:30:43 +0000 |
| Subject: | RE: [PHP] $DOCUMENT_ROOT -- didn't work from a class.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14342@lists.php.net to get a copy of this message | ||
Make sure you specify $DOCUMENT_ROOT as a global variable inside your
function.
--Vamsi
http://php.vamsi.net
-----Original Message-----
From: Maxim Maletsky [mailto:maxim.maletsky@lincmedia.co.jp]
Sent: Wednesday, August 30, 2000 4:27 AM
To: PHP General List. (E-mail)
Subject: [PHP] $DOCUMENT_ROOT -- didn't work from a class..
Hello gurus!
In one of my classes that I'm currently writing I'm trying to output
$DOCUMENT_ROOT as simple as that...
echo 'HERE->>>'.$DOCUMENT_ROOT.'<br>';
but because it is inside a function which is called from the main script, it
does not output anything except HERE->>>
What can be the problem? Why it happens inside the class and not on a simple
php file?
If I don't mistake language_variables_predefined_apacheApache variables once
they are activated should work no matter what the extension of the file is
as long as they are includ()ed, right?
Greatly appreciate your help.
Maxim Maletsky - maxim@j-door.com <mailto:maxim@j-door.com>
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http://www.j-door.com <http://www.j-door.com/>
http://www.japaninc.net <http://www.japaninc.net/>
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/>