Home arrow PHP arrow Page 7 - Commercial Break (A phpAds Primer)

Access Denied - PHP

Wanna make some money from your Web site? The simplest way tostart is by opening it up to advertisers - and if you decide to go thatroute, you're going to need a capable banner management program to helpyou keep track of customers, banners and clicks. Lukily, we've got justthe thing - say hello to phpAds.

TABLE OF CONTENTS:
  1. Commercial Break (A phpAds Primer)
  2. Getting Started
  3. The Toy Store
  4. Different Strokes
  5. Room With A View()
  6. The Advanced Course
  7. Access Denied
  8. The Number Game
  9. Endgame
By: Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 2
July 30, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
It's also possible to further customize the display of each banner via an access control list (ACL). This access control list can be defined per banner, and it allows you to control the display of each banner by IP address, day of the week or client browser.



The following example demonstrates restricting banner display only to the client at the IP address 209.34.56.1.



You can also restrict a banner to be only displayed on certain days of the week - as in the following example, which sets banner display to Tuesday only.



Finally, you can use a regular expression to match banners to client browsers - the following example only displays the banner to users running the Opera browser.



 
 
>>> More PHP Articles          >>> More By Harish Kamath, (c) Melonfire
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap

Dev Shed Tutorial Topics: