split links in text file PHP
<p>I have a text file which contains many (over 5000) links. Like this:</p>

<pre><code>http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
http://www.website.com/rgfdefvrggh
</code></pre>

<p>etc etc....</p>

<p>I'm trying to fetch each link at a time and do stuff with it....</p>

<p>so one by one, get the link <code>do something</code> and then move on to the next....</p>

<p>I don't know how i would split the links up...</p>

<p>they're all in a .txt file, separated by a line break.</p>

<p>any ideas?</p>
