/ Published in: PHP
Random image (1 in 6, could be more by changing that number) with the name: image_N.png
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.

in a would work just as well and you save 1 byte!
Well, my comment messed up. Lets try this one more time.
In a <?=?> type open and close, you dont need to end the line with a semicolon.
<?=(rand()%6)?> works just a well and you save 1 byte!
I usually make it a habit of adding the semi colon so that I can further expand on the script if I want without having to remember to add it later... This was actually put up because of another one that I saw which was way longer than this...
(it used a text file for the list of images... shudder)