-=[ rgdh ]=--=[ GrOuP]=-

All Booters Hacking And Cracking Sotware And Much More ______Comming So0on_____
HomeFAQSearchRegisterMemberlistUsergroupsLog in

Share | 

 Random Text/images

Go down 

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

PostSubject: Random Text/images   Wed 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.


$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.


echo $rando[array_rand($rando)];
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.


$rando = "...";with


include 'filename.php';

and add your arrays to filename.php
Back to top Go down
View user profile http://red-eyes.top-me.com
Random Text/images
Back to top 
Page 1 of 1
 Similar topics
» Validating 'random' text based on xpath
» [Solved] change text on poster every refresh/reload page
» how to select text from a disabled field?
» Random Oddities
» How to use storetext and verify text? It is failing for me..

Permissions in this forum:You cannot reply to topics in this forum
-=[ rgdh ]=--=[ GrOuP]=- ::  Programming  :: HTML-
Jump to: