Source Code Online Home Categories Top Code New Code Submit Code
Search
Subject Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Visual Basic & VB.NET
 XML
New Code
Easy Query Builder 2.0
Odin Secure FTP Expert 7.7.3
jQuery Accordion Gallery 1.0
PCL to TIFF Converter Shell for Mac 2.0
Fax Server Plus 5.3.0522
Fax Server Pro 5.6.0522
Advanced RSS2Web Professional 3.11.104
Group Mail Manager Premier 2.32.36
RSS Content Generator Premier 3.11.86
Get Remote IP Address in PHP 1.0.0
Elite News Pro2 PHP RSS Reader 2.0
RTF-to-HTML DLL COM, Win32 1.0
Java Download Manager 1.0
VISCOM Video Edit Gold ActiveX SDK 9.21
HTML-to-RTF Pro DLL COM, Win32 1.0
Top Code
ICPennyBid - Penny auction software 3.9
Elite News Pro2 PHP RSS Reader 2.0
ASP.NET Event Calendar in MVC3 Razor 1.0
ICHolidayLettings - Holiday Lettings Site Script 1.2
WebTreeView 1.0
BP-T-Shirt - Custom T-Shirt WebStore Script 1.0
CloudOsys File Upload 2.4b2
X360 Multi-page Tiff Viewer ActiveX OCX 2.69
Metadraw3-OCX
AceDRM 1.0
MetaTags For Websites, Documents & Articles
idCGIRunner 1.5
a-Mac Address Change
TmdMailSlot, TmdWinPopup & TmdSecureMail 1.14
WindowHTML 1.1
Report About Ad Click-Through Redirection CGI 3.0
- required fields

Please enter text on the image
  



This CGI is designed for use with ad banners. In order for you to properly calculate compensation for banners, you need to know who is clicking through them. / To install, you need to create a file that is world-writable so that all of the click-throughs can be logged. For example, if you want it to be named logfile.log, type touch logfile.log and then chmod a+w logfile.log. / Next, rename the CGI to something with a .cgi extension. For each ad, you need a different CGI. / Now, you need to edit the CGI file. Change the $redirect variable to the URL you want to redirect to. The file you created two paragraphs ago needs to have its location placed in the $logfile. Finally, the ID you want to log each hit as should be put in the $id variable. / Every time you go to the URL of the CGI, it will redirect you to the location specified in the $redirect variable and log your hit in the $logfile. /

Back