Thread
:
PHP: Displaying random lines from text file
View Single Post
12-23-2008, 06:18 PM
psili
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
<?php
echo array_rand(file('../path/to/text.txt'));
?>
shit.
i suck.
thus a bump for you.
__________________
Your post count means nothing.
psili
View Public Profile
Visit psili's homepage!
Find More Posts by psili