Re: PHP Includes
by "Martin Clifford" <MLC1(at)nrc.gov>
|
Date: |
Tue, 14 May 2002 14:16:25 -0400 |
To: |
<guyfisher(at)email.com>, <hwg-techniques(at)mail.hwg.org> |
|
todo: View
Thread,
Original
|
|
www.dzones.com=20
They have very good hosting, and I believe they have support for Access =
DBs. Why don't you just create your own includes directory, set your =
site's base href to the root, then access the includes globally like that? =
Seems much eaiser.
Offtopic: Can someone please explain to me why I never get the ORIGINAL =
post to this list? I always get replies quoting original posts. Thanks.
Martin
>>> "Guy M. Fisher" <guyfisher(at)email.com> 05/14/02 01:28PM >>>
>> You can't combine SSI and PHP in the same page. ... If I use ASP,
includes can be used ad nauseum. <<
Not only can you use includes by using PHP's include() or require()
functions, but you can include files conditionally:
if (TRUE) {
include("this.txt");
}
else {
include("that.txt");
}
You can't do that in ASP, can you?
While we're on the topic of PHP include files, I'm looking for a
Windows-based host with PHP that provides each account with a separate
PHP include directory or allows customized include_path settings. I'm
developing a PHP-powered site that has to use an MS Access database and
my current host (http://www.hostway.com) won't change my include_path
from its useless ".." setting. I'd rather not have to throw a
path-sniffing script onto every page just to use some global includes.
What I'd really covet is an Apache host with ODBC access to an Access
database. Anybody ever run across this elusive beast?
Thanks.
Guy M. Fisher
Cleveland, Ohio
guyfisher(at)email.com=20
guyfisher.com | Hand-Crafted Bookmarklets
http://www.guyfisher.com/builder/bookmarklets/=20
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA