PHP Classes

Ads and content limit: Keeps track of visitors to show limited ads a day

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,037 All time: 3,554 This week: 488Up
Version License PHP version Categories
limitads 1.1Free To Use But R...3Databases, User Management, Content m...
Description 

Author

This class can be used to keeps track of visitors to show limited number of ads or content a day.

It checks the current user IP address in a MySQL database table to determine whether the user has already visited the site.

The class stores the current date and time in the database table if the user has not accessed the site today. Otherwise the class increments the number of accesses of the user.

It returns a condition to determine whether an ad can be displayed if the number of accesses did not exceed a given limit.

Now also blocks via ip list and has much more accurate timing for release of the block.

Innovation Award
PHP Programming Innovation award nominee
January 2009
Number 12


Prize: One copy of Delphi for PHP
Advertising is only useful when the users notice and click on it. If an advertisement was presented to an user a few times and he still does not notice or is not interested, it is pointless to keep showing the advertisement again.

This class provides a solution to limit the number of times that an advertisement or other content is shown to an user.

This way you can show him a different advertisement or some other type of content.

Manuel Lemos
Picture of Lee J
Name: Lee J <contact>
Classes: 6 packages by
Country: Australia Australia
Age: 40
All time rank: 4064 in Australia Australia
Week rank: 215 Up3 in Australia Australia Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (6)  
File Role Description
Plain text file class.Ads_Limiter Class main class file
Accessible without login Plain text file class.MySQL_Connect.php Appl. Mysql connection
Accessible without login Plain text file index Example example file
Accessible without login Plain text file ips.txt Data ip block list
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file sql.php Aux. sql connection

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,037
This week:0
All time:3,554
This week:488Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1878