lucy24 - 1:00 am on Jan 24, 2013 (gmt 0) [edited by: lucy24 at 1:08 am (utc) on Jan 24, 2013]
I left in a debugging ECHO statement while testing it on FastCGI
Make that my oops: If I'd looked closer before cutting-and-pasting-- exactly the way I am always telling people not to do-- I would have seen the "echo" line :(
With the original code, the logfile
fopen("headers-". date('Ymd') . ".log","a");
is created in the directory that contains the phpheaders document. If it's made into an include called by different docs in different places, will there still be all one log file, or a separate one in each relevant directory? Or should I change it to an absolute-URL format?
:: preparing for more poring over php dot net ::
if the host that allows php includes (running PHP 5.2 or earlier) goes to cloud based file serving, in all probability they will upgrade to PHP 5.3 or greater and your php includes will likely break (no matter what type handler you use in htaccess.)
We're currently on
:: shuffling papers ::
php 5.3.6 FastCGI
There's a popup with options but this is the default. The others would seem to be older or slower.
All include files-- both html and php-- are called in the form
<!--#include virtual="/directory/filename.xtn" -->
and then the php ones have a secondary include that goes
include ($_SERVER['DOCUMENT_ROOT'] . "/directory/filename.php");
I don't have any AddHandler or AddType statements currently.
No, wait, I tell a lie. htaccess says
AddType text/html .html
I don't remember when or why I put that in. It seems tautological.
[edited by: lucy24 at 1:08 am (utc) on Jan 24, 2013]