-=[ šârgódhïâñš ]=--=[ GrOuP]=-
Would you like to react to this message? Create an account in a few clicks or log in to continue.

-=[ šârgódhïâñš ]=--=[ GrOuP]=-

All Booters Hacking And Cracking Sotware And Much More ______Comming So0on_____
 
HomeSearchLatest imagesRegisterLog in

 

 Random Text/images

Go down 
AuthorMessage
__Red_EyEs__
Admin
__Red_EyEs__


Number of posts : 306
Age : 39
Registration date : 2007-07-10

Random Text/images Empty
PostSubject: Random Text/images   Random Text/images Icon_minitimeWed Jul 11, 2007 4:09 am

Okay I will show you how to display both text and images using php.

Step 1:
We have to open a php tag and then list what we want to be displayed.



Quote:




<?
$rando[] = "This is one leet random display script";
$rando[] = "<img src='image.gif'>";
$rando[] = "<img src='image2.gif'>";
$rando[] = "This is the last message, but not using this script.";

Step 2:
We have our content in the script now it's time to display it randomly.



Quote:




echo $rando[array_rand($rando)];
?>
Usage:
All you have to do now is insert that code wherever you want the information displayed.

If you want to have all of your files in another file so its not as long in your document.
Replace


Quote:




$rando = "...";with



Quote:




include 'filename.php';

and add your arrays to filename.php
Back to top Go down
http://red-eyes.top-me.com
 
Random Text/images
Back to top 
Page 1 of 1
 Similar topics
-
» Random Violence

Permissions in this forum:You cannot reply to topics in this forum
-=[ šârgódhïâñš ]=--=[ GrOuP]=- :: »¦« Programming »¦« :: HTML-
Jump to: