View Single Post
Old 12-08-2004, 05:12 PM  
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by JSA Matt
links.txt
Izzy loves the cock, click here to watch!
Izzy is a sex machine, watch him ride the anal anialator!
Izzy and Juicy, sitting in a tree, K-I-S-S-I-N-G

links.php
<?php
$links = file("links.txt");
echo $links[rand(0,count($links))];
?>
Wrong. Your script has a 1/(number of lines+1) chance of echoing absolutely nothing. You have to decrease count($links) by one.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote