Using a cgi include for a traffic trading script to count incoming traffic Using a cgi include for a traffic trading script to count incoming traffic
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Using a cgi include for a traffic trading script to count incoming traffic

Started by fusionx, October 23, 2005, 11:35:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fusionx

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

fusionx

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.