I'm not sure how much memory this would take up, or how slow it would be, but you can always try and find out:
And then kill the array right after you've used it.Code:$f = explode("\n", file('filename.txt')); echo $f[$randomNumber];
|
Results 1 to 6 of 6
Thread: Random QuotesHybrid View
|
Click Here to Expand Forum to Full Width |