Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Website
ssi include for web stat tracking on the php pages how do we get a ssi include to work on php? iggy99 msg:1265135 4:31 am on Jan 8, 2002 (gmt 0) 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
sugarkane msg:1265136 5:19 pm on Jan 8, 2002 (gmt 0)
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.
iggy99 msg:1265137 6:14 pm on Jan 8, 2002 (gmt 0)
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>
ggrot msg:1265138 6:25 pm on Jan 8, 2002 (gmt 0)
<?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.
Marcia msg:1265139 6:27 pm on Jan 8, 2002 (gmt 0)
<!--#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?
sugarkane msg:1265140 6:28 pm on Jan 8, 2002 (gmt 0)
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 msg:1265141 7:49 pm on Jan 8, 2002 (gmt 0)
here is my last try...
any more ideas??? thanks
$fpt = fopen("home/sites/site30/web/_tx/traxis-counter.cgi?site=atwstat"); $fpassthru($fpt); ?>