PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
for loop // loop how many links we want, ie 10
while loop // check for links already selected, compare with in_array(returned array + current randow row) & check if variable isnt empty (random row, so it will make one)
select random row set as variable
Set selected link to returned array
Personally I'd open the file (http://php.net/fopen) and then read it as I need to using fread, from there you can cut it up line by line using explode or something. This probably isn't the most efficient way to do it but should be fine so long as the file is only a few lines and it's a good place to start.