[Project_owners] PROJECT_PATH

Eric Jung eric.jung at yahoo.com
Sat Dec 19 12:11:50 PST 2009


Thanks for the help. On mozdev, we don't have to include globals.h on every
PHP page to get these variables defined. So is there a "trick" to getting my
own globals.h included on every PHP page without using require() /
require_once() in every file?

Thanks,
Eric


On Sat, Dec 19, 2009 at 2:00 PM, cdn <cdn at mozdev.org> wrote:

> try define('PROJECT_PATH', "/path/to/my/docroot");
>
> see globals.h in hovercraft project for others - Doug will know where
> latest code is...
>
> --
>
> cdn
>
> --
>
> http://www.chrisneale.co.uk
>
>
>
> On Dec 19 2009, Eric Jung wrote:
>
>  Hi,
>>
>> How can I simulate PROJECT_PATH on my own host / php installation? I
>> tried:
>>
>> PROJECT_PATH="/path/to/my/docroot"
>>
>> in php.ini, but this didn't work. I know I have the path correct, but I
>> suspect I can't set a variable globally like that in php.ini. Any ideas?
>>
>> Thanks,
>> Eric
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20091219/c343fc72/attachment.html>


More information about the Project_owners mailing list