[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'current server directory' ?


Jonathan Vanasco wrote:
I'm trying to figure out a way to store them in a semi-standard manner.

The only thing i can think of right now, is writing a 'server root' variable for the dir in which I am installing my mp app, and reading it based on that.
Not sure if this'll help but for virtual-server-specific stuff I use the parent of the document root a lot - eg.

$my_data_dir=$r->document_root().'/../data_dir/';

I made a custom config module which allows me to write in httpd.conf:

<VirtualHost *:80>
MyAppStuffDir ../data_dir/
etc

hth,
John


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.