PHP Code for checking weapon images.

Soooo I got bored and wrote up a tiny bit of php that checks the servers for the weapon icons (the images with the green backgrounds you get on the clan page). Thought I'd be nice and share it!

Here's a test of it in action: http://rory.modhub.org/test/ (please note I do not plan to keep this up for very long so if it's not what this thread states then I've changed or removed it). The code does not include the styling/menus/layout of the website.

Here's the code:
<?php
$num=0;
while($num<=600)
//Change above # to change # of image checks.
{
$num=str_pad(num,4,"0",STR_PAD_LEFT);
echo "<img src='http://clan.z8games.com/images/weaponimages/C$i.jpg'> ";
$num++;
}
?>
This code requires a web server to run, it will not work on a local machine.

If you want to know what this does/how this works I can explain below if asked!

Enjoy!

Comments