Kahuki Webmaster Forum  

Go Back   Kahuki Webmaster Forum > Website Development & Management > Programming > PHP

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007, 02:56 AM
Rookie
 
Join Date: Jun 2007
Posts: 15
ewriter is on a distinguished road
Random Ads In PHP

I want solution to display random advertisement images on my php page. ANyone can help me regarding this?

THanks in advance for any help.

Reply With Quote
  #2 (permalink)  
Old 06-27-2007, 11:43 AM
Molotov's Avatar
Rookie
 
Join Date: Jun 2007
Posts: 31
Molotov is on a distinguished road
You should visit http://www.hotscripts.com, there you will find a lot of ready to run scripts.

Molotov

Reply With Quote
  #3 (permalink)  
Old 06-27-2007, 04:13 PM
Rookie
 
Join Date: Jun 2007
Posts: 16
kodin is on a distinguished road
maybe you can try this.. but may need some edit to meet your requirement.

http://www.dynamicdrive.com

Reply With Quote
  #4 (permalink)  
Old 06-30-2007, 11:47 AM
Rookie
 
Join Date: Jun 2007
Posts: 15
webspider2005 is on a distinguished road
I tried using PHPAds. It takes a bit to learn this script. But once you're get used to it, PHPAds is helpful in managing your site ads. You can even include pay per click ads using this script.

Reply With Quote
  #5 (permalink)  
Old 10-30-2007, 01:55 PM
Rookie
 
Join Date: Oct 2007
Posts: 16
jonimontana is on a distinguished road
Quote:
<?php
$num = rand(1,3);
echo "<img src=/banners/$num.gif>";
?>
Easy... =]

__________________
JoniMontana - Programmer
icq-50015047
  • Php
  • Html
  • Sql

Reply With Quote
  #6 (permalink)  
Old 11-13-2007, 09:24 AM
Rookie
 
Join Date: Nov 2007
Posts: 4
HeeL is on a distinguished road
Send a message via ICQ to HeeL Send a message via Skype™ to HeeL
Quote:
Originally Posted by jonimontana View Post
Easy... =]
Yes, but in this way you must give names for files like that: "1.gif", "2.gif"....

Better use function like readdir() and then parse filename for extensions jpg, png, gif...

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
On ICQ how come never get random chat messages from others anymore? Lokesh General Discussions 2 10-19-2006 08:13 PM


All times are GMT. The time now is 11:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0