Random Logo PHP - Security Issue?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Random Logo PHP - Security Issue?
Try making the images into an array, eg

PHP Code:
 $images=array(...);
$image=$images[rand(0,count($images)-1)];


Maybe you'll need to assign the random number seperately.


My Blog
05-13-2012 12:31 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Random Logo PHP - Security Issue? - mdb - 05-13-2012, 10:56 AM
RE: Random Logo PHP - Security Issue? - ZiNgA BuRgA - 05-13-2012 12:31 PM

 Standard Tools
Forum Jump: