Re: Site root question: Newbie
- From: Pupkin <spamagnet@xxxxxxxxx>
- Date: Sat, 26 Aug 2006 00:35:21 -0700
In article <4l96eaFsrm0U1@xxxxxxxxxxxxxx>, user@xxxxxxxxxxx says...
Pupkin wrote:
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/"?
That depends on how the thing is coded, I would guess that the variable that
you set to "/client/dev/2006/" was all you needed to change.
That was a variable that only sits in front of all of the site includes,
all of the root-relative links in the site are still looking at
http://www.site.com/ as the root rather than
http://www.site.com/client/dev/2006/.
I know the easiest way to change this is set-up a new dev site rather
than using a subfolder in a preexisting site, but I can't make that call
on this project.
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.
You managed to loose me there, if you are using apache, then go to apache.org
and see the documentation there.
Thanks. I've found that most docs at this level are written for tech-
types who are already fluent in the vocab, rather than hand-holding a
newbie through the basics, and that's what I'd like to find, if
possible.
In IIS, you set the root folder of the site via the management console,
and that is the root folder. In all of the PHP sites I've seen there are
always a couple of folder levels outside the web site root (usually like
/usr/sitename/www/) and these seem to contain necessary php files like
pear, and setting root-relative links, especially with include files,
can be a real pain, in my limited experience.
I thought there was a quick way in PHP to set a built-in function to a
specified virtual root path, but maybe not.
.
- Follow-Ups:
- Re: Site root question: Newbie
- From: J.O. Aho
- Re: Site root question: Newbie
- References:
- Site root question: Newbie
- From: Pupkin
- Re: Site root question: Newbie
- From: J.O. Aho
- Site root question: Newbie
- Prev by Date: Re: Site root question: Newbie
- Next by Date: Re: Site root question: Newbie
- Previous by thread: Re: Site root question: Newbie
- Next by thread: Re: Site root question: Newbie
- Index(es):
Relevant Pages
|