01110100 01101000 01101001 01110011 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01110000 01101100 01100001 01100011 01100101 00100000 01100110 01101111 01110010 00100000 01110100 01101001 01110000 00101100 00100000 01110100 01110010 01101001 01100011 01101011 01110011

Random Image Selection


This is a neat little trick I sometimes use to freshen up websites that suffer from heavy text content The script will use an array of predefined images that exist in a directory and choose at random one of the images from within it.

// PHP Random Image Selecter
$arr_img_list = array(’1.jpg’,'2.jpg’,'3.jpg’,'4.jpg’,'5.jpg’,'6.jpg’,'7.jpg’,'8.jpg’,'9.jpg’);
$i_lower_limit = 0;
if(count($arr_img_list)>0){
$i_upper_limit [...]

July 25th, 2008 - permalink

Keeping track of MySQL errors


Now in a perfect world applications would never error. The code would be totally flawless, it’ll account for any input that a user can desire to throw at it and do it quietly. However, lets be realistic, even the best planned, tested and implemented code can occasionally error and its important to catch it when [...]

March 5th, 2007 - permalink

Forcing Images to reload


If you have ever had a problem forcing an image to reload in the browser you can use this little tip to trick the browser into reloading it.
The problem normally occurs where you have a tool allowing the user to upload a new image. If you don’t change the actual name of the image, then [...]

March 4th, 2007 - permalink



  • Tutorials and Snippets

  • Random Stuff

  • Useful Tools & Links

  • Other Useful Links

  • .binaryninja Archives

  • Meta: