PHP Includes
by "Guy M. Fisher" <guyfisher(at)email.com>
|
| Date: |
Tue, 14 May 2002 13:28:48 -0400 |
| To: |
<hwg-techniques(at)mail.hwg.org> |
| In-Reply-To: |
|
| |
todo: View
Thread,
Original
|
|
>> 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
guyfisher.com | Hand-Crafted Bookmarklets
http://www.guyfisher.com/builder/bookmarklets/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.