Easy question, I am drawing a blank.
- From: "DJ Majestik" <jimmymg@xxxxxxxxx>
- Date: 25 Jul 2005 20:08:40 -0700
Been up coding for hours now, and having one of those easy problems
that I can't figure out. I have the following server setup:
/home/jj/public_html/dev/nn.com
Under n.com folder, I have a file:
ext.inc
config.php
test.php
I am trying to setup a variable called $root_path that I can set in
config.php and be used throughout my app (any folder) and still point
to the root.
In test.php, I have the following lines:
$root_path = '/dev/nn.com/';
if (!file_exists($root_path . 'ext.inc'))
{
die ('$root_path is wrong.');
}
And it always errors out. I have tried 'dev/nn.com'. I can't use './'
because it has to work from a sub-directory. I can't use
'/home/jj/public_html/dev/nn.com' because this is also used for images
in template files, so I need a relative link to the web root. Can
anyone help me with what to set root path to?
Thanks a lot. I am so frustrated!
JJ
.
- Follow-Ups:
- Re: Easy question, I am drawing a blank.
- From: Michael Phipps
- Re: Easy question, I am drawing a blank.
- Prev by Date: About PHP::: Error/Problem PHP Warning: mysql_fetch_array():
- Next by Date: Re: Display how long the query took on webpage?
- Previous by thread: About PHP::: Error/Problem PHP Warning: mysql_fetch_array():
- Next by thread: Re: Easy question, I am drawing a blank.
- Index(es):
Relevant Pages
|
|