Site root question: Newbie



Hi,

This may not make me popular around here, but I'm used to working in
Windows Server environments with ASP, but I've been tasked with helping
implement a redesign on a PHP site.

I've been given a dev site to work on that is set in a subdirectory of a
larger site, so my root directory for the dev site is like:

http://www.site.com/client/dev/2006/

IMO, this is a poor way to proceed. It would be better to set up a dev
site with its own URL so it can have a true root directory. But this is
what I have to work with right now, and it may take a few days before I
can get the right person to change the set-up.

I found one root-related variable in the pre-existing code, and when I
set that to the value "/client/dev/2006/" all of the site's includes
started working, but all of the site's root relative links naturally
think that "http://www.site.com/"; is the web site root.

Is there a way in PHP to set a global variable that will tell all of the
root-relative links in this dev site to really look here for a starting
point: "http://www.site.com/client/dev/2006/";?


TBH, I've always had trouble reconciling my more familiar IIS-based
concept of site roots (where the root folder is the root folder, period)
to common Linux server concepts of site roots, such as when they have a
user root with some code, with the web site root a few folders deeper.
If anyone could also point me to a crash course in understanding this
different configuration, I'd appreciate it.

Thanks
.



Relevant Pages

  • Re: Site root question: Newbie
    ... root-relative links in this dev site to really look here for a starting ... I know the easiest way to change this is set-up a new dev site rather ... concept of site roots (where the root folder is the root folder, ...
    (alt.php)
  • Re: Norton approval of website
    ... your root is what your index.htm page is under..... ... Add a publicly viewable file at the root folder of your Web site. ... Step 2: Initiate the verification process Once you have completed Step 1, please click on following link to initiate the verification process: http://safeweb.norton.com/site_dispute/verify_site/55208 ... need to copy a verification code into my website root folder. ...
    (microsoft.public.frontpage.client)
  • Re: Pages not in root folder
    ... MVP; ... The defaults in IIS doesn't relate the the root folder, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: VBScript root folder property question
    ... I now have a script which needs to access the root folder of a user defined ... 'Get User Input For Desktop Icon Creation ...
    (microsoft.public.scripting.vbscript)
  • Re: root files
    ... but I am not familiar with Norton Safe Web .... ... The default for publisher is the "index.htm" file. ... needs to be placed in the root folder on the server. ... > publicly viewable file at the root folder of my Web ... ...
    (microsoft.public.publisher.webdesign)