Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

random

Random Color Generator
Saturday, 30 July 2011 11:13
Simple random color generator


function randomColor() {
$str = '#';
for($i = 0 ; $i < 6 ; $i++) {
$randNum = rand(0 , 15);
switch ($randNum) {
case 10: $randNum = 'A'; break;
case 11: $randNum = 'B'; break;
case 12: $randNum = 'C'; break;
case 13: $randNum = 'D'; break;
case 14: $randNum = 'E'; break;
case 15: $randNum = 'F'; break;
}
$str .= $randNum;
}
return $str;
}
$color = randomColor();
echo 'Random color: '.$color.'';
?>

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/MCG-UjF-CVw/13445

 
Rumor: World's Largest English-Language Publishing House Might Finally Join the iBookstore [Unconfirmed]
Monday, 28 February 2011 20:17
It's only speculation at this point, but it seems that Random House might finally be joining the iBookstore in the near future. Random House is the world's largest English-language publisher and the only one of the six major publishing houses to not be offering its titles in Apple's iBookstore. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/ZEy3G3i8zkg/rumor-worlds-largest-english+language-publishing-house-might-finally-join-the-ibookstore

 
Get to Know and Like the Gizmodo Staff [Promotion]
Friday, 04 February 2011 22:20
We write posts every day without sharing too much about ourselves, so we decided to maintain individual Facebook pages for our thoughts, photos, and random non-Gizmodo links. Check 'em out—and don't be afraid to "like" them. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/p33JnMZDv5o/get-to-know-and-like-the-gizmodo-staff

 
Php random File
Saturday, 01 January 2011 03:46
// i think everybody(Beginners) want to know how it make.

function RandomFile($folder='', $extensions='.*'){

// fix path:
$folder = trim($folder);
$folder = ($folder == '') ? './' : $folder;

// check folder:
if (!is_dir($folder)){ die('invalid folder given!'); }

// create files array
$files = array();

// open directory
if ($dir = @opendir($folder)){

// go trough all files:
while($file = readdir($dir)){

if (!preg_match('/^\.+$/', $file) and
preg_match('/\.('.$extensions.')$/', $file)){

// feed the array:
$files[] = $file;
}
}
// close directory
closedir($dir);
}
else {
die('Could not open the folder "'.$folder.'"');
}

if (count($files) == 0){
die('No files where found :-(');
}

// seed random function:
mt_srand((double)microtime()*1000000);
Barbie Oyunları
// get an random index:
$rand = mt_rand(0, count($files)-1);

// check again:
if (!isset($files[$rand])){
die('Array index was not found! very strange!');
}

// return the random file:
return $folder . $files[$rand];

}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/ZbbDVhlY_oM/12795

 
Send a Gift to a Complete Stranger's Address [Gifts]
Saturday, 25 December 2010 20:00
My parents taught me to never talk to strangers, but they never told me I couldn't buy Christmas gifts for them! If you're overdosed with Christmas spirit, Giftastranger.net generates random addresses across the world so people can send gifts to strangers. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/OznsPahy96M/send-a-gift-to-a-complete-strangers-address

 


Taxonomy by Zaragoza Online