[nycphp-talk] FUNDAMENTALS #1: Site Structure
Brian Pang
bpang at bpang.com
Fri Sep 5 20:49:37 EDT 2003
shared server meaning what?
I don't think you mean virtual domain hosting where 1 server hosts
multiple domains. Each domain would have it's own document root.
if you mean where you are working entirely in a subdirectory on 1
domain; i.e. domain.com/site1 vs. domain.com/site2
maybe I'd beg to drop 1 file in the root with some obscure name other
than LIB.php... even as .LIB.php so it's more hidden.
or I would just append the dir name in the include
include($_SERVER['DOCUMENT_ROOT'] . "/site1/LIB.php");
and "assume" that if it moves to another box that it would still stay
within the site1 dir. Else, it's not a hard search/replace.
on my dev server, I usually create multiple virtual domains
> >
> > only the LIB.php needs to go in the document_root.
>
> And if the server you're trying to move to is a shared server on which you
> don't have control over the document root? Or, on your development
> server, you develop lots of clients websites, so make subdirectories off
> of the main document root to do the designs in? Or...
>
> ... wonderin' what's so hard 'bout snippin...
it's not, just trying not to leave out so much of the thread that the
thread is lost
More information about the talk
mailing list