Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
ssi include for web stat tracking on the php pages how do we get a ssi include to work on php? iggy99
here is my ssi
is is not being parsed / read by the tracking program on *.php pages ...
This Does Work On html with
Options Includes +ExecCGI
AddType text/x-server-parsed-html .html .htm
I don't think you can get PHP and SSI to coexist on the same page, but PHP has the virtual() function which does more or less the same job eg
This apparently only works if PHP is installed as an Apache module - I think it usually is.
any other ideas??? this is the warnong message i get
<b>Warning</b>: Unable to include '/_tx/traxis-counter.cgi?site=atwstat' - request execution failed in <b>/home/sites/site30/web/content/index.php</b> on line <b>3</b><br>
<?php $fpt = fopen("http://full/web/path/_tx/traxis-counter.cgi?site=atwstat"); $fpassthru($fpt); ?>
I think the problem in the previous example lies in the query string. Im not sure if this will work either. Be sure to change the path.
<!--#include virtual="/_tx/traxis-counter.cgi?site=atwstat" -->
SSI's need to have that extra blank space after the final quote. Could that be it?
Hmm, looks like it will work if the path is right. Try it without the leading / in "/_tx/", or if that doesn't work try the full server path/home/sites/site30/web/content/_tx/traxis-counter.cgi?site=atwstat iggy99
here is my last try...
any more ideas??? thanks
$fpt = fopen("home/sites/site30/web/_tx/traxis-counter.cgi?site=atwstat"); $fpassthru($fpt); ?>