How do you make non-www. links contain www. in php?
<p>Im storing imdb.com links for each movie thats listed in the DB, and check for duplicates before a new movie is inserted. The problem is, some links are <a href="http://imdb.com/whatever" rel="nofollow">http://imdb.com/whatever</a> while others are http://<strong>www</strong>.imdb.com/whatever</p>

<p>What would be the best way to force www. into every link thats submitted? I realize I should be storing the url without http:// or <a href="http://www" rel="nofollow">http://www</a>. which would alleviate this problem all together.... but its too late to make that decision now.</p>
