Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Using a cgi include for a traffic trading script to count incoming traffic  (Read 3259 times)

0 Members and 1 Guest are viewing this topic.

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13

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:

Code: [Select]
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
« Last Edit: October 24, 2005, 07:48:10 am by GauGau »
Logged

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.