Re: htaccess files revisited.

by "Darrell King" <darrell(at)webctr.com>

 Date:  Mon, 22 Oct 2001 08:11:53 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  oemcomputer
  todo: View Thread, Original
They can't coexist this way.  There is a trick where PHP scripts can be
included via SSI, thus bypassing the problem, but their syntax isn't
compatible enough to try making them both wotk together.  Another option, of
course, is to set up different directories for each.

Personally, I just did away with SSI.  You can use Passthru()
(http://www.php.net/manual/en/function.passthru.php) or Exec()
(http://www.php.net/manual/en/ref.exec.php) to include external programs.

D

----- Original Message -----
From: "Mike Taylor" <lonewolf(at)one.net>


Does the second line override the first line?  Or do they both define the
PHP extension?  The reason I ask is because I can't get my server-side
includes to work on PHP pages.  They only work on my HTML pages, which I've
also added an AddType directive for:

AddType text/x-server-parsed-html .html

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA