forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: fusionx on October 23, 2005, 11:35:41 pm
-
Hi All,
I searched the forum heavily and tried everything I can find to no avail.
I've installed a traffic trading script that requires the use of a compiled cgi file "in.cgi". This file basically counts incoming hits, and sets a tracking cookie.
The docs specify one of the following mehtods of inclusion:
To track incoming hits, you need to place the following code in your index.shtml file
<!--#include virtual="/cgi-bin/at3/in.cgi" -->
for php mainpages use
<?php virtual ("/cgi-bin/at3/in.cgi"); ?>
Neither one will work. I'm using the custom header mod for plain HTML without issue. However, the ssi isn't executed - of course it won't execute php files...
The php code always gives the "cannot modify headers..." error.
Any ideas on how I can execute this script correctly?
Thank you,
Jeff
-
George_CC fixed this for me - the line of code:
virtual ("/cgi-bin/at3/in.cgi");
went in the theme.php just before the template was evaluated at the end of the pagerheader function.
It's working great now.