Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
~ The Official Hash...
11-06-2009 10:56 AM
by mehike
Last post by Arthritis
Today 12:45 PM
916 Replies, 21,076 Views
Go to first new post Selling level 92...
01-11-2010 11:41 AM
by mayoarm
Last post by mayoarm
Today 12:45 PM
1 Replies, 56 Views
+ repping if you sign up...
Today 12:36 PM
by Acid
Last post by Acid
Today 12:36 PM
0 Replies, 1 Views
Go to first new post What are you currently...
09-12-2008 03:16 PM
by Ocean
Last post by FlameSpiritZenon
Today 12:32 PM
2,965 Replies, 23,963 Views
Go to first new post Weed smoking.
07-17-2009 07:42 AM
by rufiomk
Last post by Husky
Today 12:25 PM
184 Replies, 2,323 Views
Reply
 
LinkBack Thread Tools Display Modes

 Random Images [ PHP]
Old 10-18-2006, 03:55 PM   #1 (permalink)
Oosband
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Random Images [ PHP]

Want a simple random image script? Here it is!

Code:
<?php
$dir="./";
$nimg="10";
$itype="jpg";
$bor="1";

$rnumb=rand(1,$nimg);

echo "[img][/img]";
?>
How To Use It:
$dir="./"; - This is the path (directory) to the images, it must include the foward slash.
$nimg="10"; - Number of images in the folder.
$itype="jpg"; - The image type (don't Include the ".").
$bor="1"; - The image border, 0 is no border, 1 is a 1 pixel border.

Add the code the where ever you want it to apprear on the web page.
Make sure the web page file type is .php.
All image names must be a number (Example: 1.jpg 2.jpg 3.jpg).

Hope this is useful.
  Reply With Quote

 
Old 10-31-2006, 05:10 AM   #2 (permalink)
unlimitedorb
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
This is always a fun thing to do when starting out.
  Reply With Quote

 Re: Random Images [ PHP]
Old 11-18-2006, 09:38 PM   #3 (permalink)
R3V3NGE
Guest

 
Posts: n/a
GPoints: 0 [Check]
iTrader: / %
Re: Random Images [ PHP]

yea my friend has that.
  Reply With Quote

 Re: Random Images [ PHP]
Old 11-19-2006, 06:15 AM   #4 (permalink)
Member

Male sloop is offline
 
sloop's Avatar
 
Join Date: Nov 2006
Age: 19
Posts: 87
GPoints: 101
iTrader: 0 / 0%
sloop Is a New Face in Town
Rep Power: 11
Re: Random Images [ PHP]

Fun stuff.
__________________
~Sloop •Immortal and Wise•Sniper:
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
random quiz... angelwells917 General Discussion 37 04-08-2007 04:34 PM
Random Thoughts wTF ||? Evan General Discussion 5 11-03-2006 05:58 AM
Random Number [PHP] Oosband Tutorials 1 10-31-2006 05:09 AM
A few random questions... Ashemotos MapleStory 43 10-19-2006 09:53 PM
Random Question. monster Chat 5 10-03-2006 03:40 PM

Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 12:53 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.25182009 seconds (100.00% PHP - 0% MySQL) with 20 queries