You are here: Site root question: Newbie « All PHP « IT news, forums, messages
Site root question: Newbie

Posted by Pupkin on 09/28/94 11:56

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация