PHP
  Home arrow PHP arrow Page 4 - Commercial Break (A phpAds Primer)
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Commercial Break (A phpAds Primer)
By: Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2002-07-30

    Table of Contents:
  • Commercial Break (A phpAds Primer)
  • Getting Started
  • The Toy Store
  • Different Strokes
  • Room With A View()
  • The Advanced Course
  • Access Denied
  • The Number Game
  • Endgame

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Commercial Break (A phpAds Primer) - Different Strokes


    (Page 4 of 9 )

    Once a client has been added to the system, the next step is to add banners for that client. Use the banner administration link on the main control panel to select the newly-added client, and you'll see a page that looks like this:



    Obviously, there's nothing very interesting here yet, primarily because you haven't yet added any banners. So how about rectifying that, via the "add new banner" link?



    Now, phpAds allows three kinds of banner ads:

    1. An image banner stored in the database. Here, the system requires you to upload an image, which is saved in the database as a binary object and retrieved whenever required.

    2. An image banner accessed via a URL: In this case, the system requires you to specify a URL for the banner, and uses this URL to retrieve the banner whenever needed.

    3. An HTML banner: In this case, the banner is not an image, but HTML code. This allows for more innovative banners, which may include form controls or table-formatted text.

    Obviously, a banner also needs to point to something - which is why phpAds also requires you to enter a target URL for each of the three banner types listed above. For the image banners, you can also specify a line of text to be printed below the image.

    Finally, phpAds also allows you to specify keywords for each banner that you display. These keywords are descriptive terms related to the content of the banner, or to the client, and come in handy when deciding which banner to display on which page.

    Once you've added a banner, it gets saved to the database, and phpAds takes you back to the banner administration screen, where you can deactivate, modify or delete the banner.

    Pretty simple, huh? Go ahead, try it out yourself - add a couple of banners of each type to the system to see how it works, and then flip the page to see how you can integrate the ad rotator into your Web site.

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


     

       

    PHP ARTICLES

    - Validating Web Forms with the Code Igniter P...
    - Output Buffering
    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway