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:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.