RE: [PHP] ad banner rotator

From: Date: Thu, 07 Sep 2000 20:23:54 +0000
Subject: RE: [PHP] ad banner rotator
Groups: php.general 
Request: Send a blank email to php-general+get-15766@lists.php.net to get a copy of this message
phpAds is more than what most of us need. It's great. I recommend it. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. > -----Original Message----- > From: Thomas Edison Jr. [mailto:thomasedisonjr@yahoo.com] > Sent: Wednesday, September 06, 2000 4:15 AM > To: Jesper Juhl > Cc: php-general@lists.php.net > Subject: Re: [PHP] ad banner rotator > > > Isn't the PHPAdmanagement available at > www.phpwizard.net for this need? I haven't tried it so > i don't know....but i needed something like this as > well so i have been recommended that > T. Edison jr. > > > --- Jesper Juhl <juhl@eisenstein.dk> wrote: > > Daniel Guerrier wrote: > > > > > > Is there a function in PHP that takes care of > > rotating > > > banner ads? One similar to the function available > > in ASP. > > > > I don't think there is such a function, but it > > should be trivial to > > implement. > > > > If you just want to show a random ad everytime > > someone loads a page, > > then you could use the following approach. > > > > 1) create a file with the following format: > > > > image: ad1.gif > > url: http://www.adsite1.com/ > > ---seperator---image: ad1.gif > > image: ad2.gif > > url: http://www.adsite2.com/ > > ---seperator---image: ad1.gif > > image: ad3.gif > > url: http://www.adsite3.com/ > > ---seperator--- > > ... and so on ... > > > > 2) when a user loads a page do the following: > > 2.1) count number of adds in file > > 2.2) generate random number between 1 and > > nr_adds_in_file > > 2.3) output (let's say ad2 was selected) <a > > href="http://www.adsite2.com/"><img > > src="ad2.gif"></a> > > > > 3) That's it, unless you also want to detect if > > people click the ad. > > > > If you have some specific needs, then drop me a > > email and I'll see if I > > can maybe write something for you. > > > > > > Best regards, > > Jesper Juhl > > juhl@eisenstein.dk > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: > > php-general-help@lists.php.net > > To contact the list administrators, e-mail: > > php-list-admin@lists.php.net > > > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : abraxastech@yahoo.com > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#15766) next »