Télécharger des logiciels Windows, Mac, Linux, Palm, Pocket PC, Mobile, Jeux, scripts PHP, script ASP, scripts CGI, scripts PERL. Télécharger des cours, des wallpapers, des curseurs, des gifs animés, des fonds d'écran, fonds d'écrans, des textures, des icônes, des dessins. Gratuiciels, freeware, shareware, démonstration, gratuit.
Faites le plein de téléchargements !

 
 
 
 
 
 
 
 
 
 Télécharger le script cgi--perl Advertisement Click Through and Logging - Toocharger.com.
l►► Télécharger Advertisement Click Through and Logging v1.1. Cette petite application enregistre tous les clics sur vos bannières, cela vous permettra de surveiller l'évolution de vos campagnes publicitaires. Script Advertisement Click Through and Logging. Téléchargement de Advertisement Click Through and Logging, download.
Vous êtes ici : Scripts > CGI & Perl > Bannières publicitaires > Advertisement Click Through and Logging

Scripts PHP, ASP, Flash, CGI-PERL, Javascript, ASP.NET, Python, C, C++, DHTML, XML et CFM

SCRIPT CGI--PERL ADVERTISEMENT CLICK THROUGH AND LOGGING v 1.1

 

Cette petite application enregistre tous les clics sur vos bannières, cela vous permettra de surveiller l'évolution de vos campagnes publicitaires.

Télécharger

CODE SOURCE (imprimer) :
#!/usr/local/bin/perl
# Program name: go-to-ad
# Installed in the CGI directory.

# Purpose:
#       This is a "click-through" CGI program that sends the browser to
# an advertiser's site.

# Optional Feature:
#       Before it does that, it can log certain information.
# The log file name is based on the url or image name passed to it.
# This avoids the overhead of dealing with a database. The data
# analysis and lookup can be done on a different machine later.

# Written by: Rajiv Pant (Betul)  betul@rajiv.com  http://rajiv.org

# Original Version: 1.0 1995/Dec
# Current Version: 1.1 1996/Jun

# Current status: Replaced by a more efficient Server API version.

use lib '/my/perl/lib/where/date/and/time/module/is/kept' ;

use Date_Time ; # Perl object package written by Betul.
# Freely available at http://rajiv.org


$AdLogFolder = '/inet/data/logs/advertisers' ;

$ImageExtensions = '(gif|jpg|jpeg)' ;

$Date = new Date_Time ;

($URL, $Image) = split '&image=', $ENV{'QUERY_STRING'} ;



$ToBeLogged = 0 ;


if ($ToBeLogged)
{

# The name of the log file is the Image name, if specified.
# If not, the URL is used. If the URL is used, then
# removing the initial http:// or https:// part of the URL
# for the log file name since over 99% of sites are http:// anyway.

($LogFile = ($Image or $URL)) =~ s{^\w+\://}{} ;


# Converting slashes to underscores because a unix file name can not
# contain any slashes.

$LogFile =~ tr[/][_] ;


# Removing the .GIF or .jpeg extension from the end of the file.
# We don't expect an advertiser's URL to end in an image.

$LogFile =~ s/\.$ImageExtensions$//i ;


# We start a new log file every month.

$LogFile = "$AdLogFolder/$LogFile." . $Date->year . $Date->month ;

open (LOGFILE, ">>$LogFile") ; # Disabled for now.

# Locking the log file so that another instance of this program
# or some other program wanting to open the same file has to wait
# until this instance unlocks it.

flock LOGFILE, 2 ; # 2 Means lock with exclusive rights on the file.

# Now we seek to the end of the file in case our previous lock
# request had to wait for another program to complete its work
# and unlock the file.

seek LOGFILE, 0, 2 ;


print LOGFILE

'DATE=',		$Date->year. $Date->month. $Date->day,	"\t",
'TIME=',		$Date->time_format_1,			"\t",
'HTTP_REFERER=',	$ENV{'HTTP_REFERER'},			"\t",
'HTTP_USER_AGENT=',	$ENV{'HTTP_USER_AGENT'},		"\t",
'REMOTE_ADDR=',		$ENV{'REMOTE_ADDR'} ;


# Unlocking the file.

flock LOGFILE, 8 ; # 8 Means unlock the file.

close (LOGFILE) ;

} # end if ToBeLogged


# Redirecting the browser to go to the advertiser's URL specified.

print "Location: $URL\n\n" ;

 Auteur rajiv.com
 Site web de l'éditeur
 Date de publication 01/05/2008
 Langue anglais
 Type de licence gratuit
 Licence -
 Bases de données Aucune
 Téléchargements total 357
 Téléchargements ce mois 2

Note des utilisateurs

-/10

Fonctionnalités
Blank
Interface
Blank
Stabilité
Blank
Installation
Blank
Rapport qualité/prix
Blank
Avis général
Blank
Nbre d'avis : 0

Blank




Blank


Il n'y a pas d'avis enregistrés pour le moment, vous pouvez enregistrer le vôtre.

Copyright © 2004-2009 Webluna. Tous droits réservés.
Hebdotop