View Single Post
Old 12-24-2008, 02:43 AM  
pornbling
Registered User
 
Join Date: Apr 2008
Location: underground
Posts: 251
try this:

$fp=file('yourfile.txt');
shuffle($fp);
echo $fp[0];

This should do it. If you want to see more
echo $fp[1]; echo $fp[2]; ...
pornbling is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote