Re: [PHP4BETA] $DOCUMENT_ROOT not available from within a class method?
| From: | php at home dot uh dot nu | Date: | Tue, 02 May 2000 23:31:53 +0000 |
| Subject: | Re: [PHP4BETA] $DOCUMENT_ROOT not available from within a class method? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14391@lists.php.net to get a copy of this message | ||
Its a global. So in your constructor do this
global $DOCUMENT_ROOT;
Walt
>
> is there a reason why the global var $DOCUMENT_ROOT would not be available
> from within a php constructor?
>
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>