Easy question, I am drawing a blank.



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

.



Relevant Pages

  • Re: Easy question, I am drawing a blank.
    ... I have the following server setup: ... > in template files, so I need a relative link to the web root. ... > anyone help me with what to set root path to? ...
    (php.general)
  • Re: Page and Images not found on Localhost
    ... I didn't know that even images could be declared as server controls. ... which may not have been declared as a server control. ... I designated the "project" folder as an application in IIS. ... is the root for anything under it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Virtual Directory, Paths, Local and Deployed Problem
    ... If you are looking to get to the /images folder from the root. ... In production: http://www.site1.com/images/mygif.gif ... make this a virtual folder in IIS. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: This will stump you
    ... > folder, they are not in the web's root. ... Convert the folder to a subweb - ... > Also clear your IE Temp files ...
    (microsoft.public.frontpage.client)
  • Missing C:I386 Goes Unnoticed!?
    ... The $OEM$ folder is in the root of the CD alongside the ... drive is the drive letter of the hard disk. ... [and then start Setup again]*. ...
    (microsoft.public.win2000.setup_deployment)