OK I'm trying to get the URL of an image on a page.
http://habbo.co.uk/home/Korma
The image im trying to get is in code like this in the src bit.
I've tried this codeHTML Code:<div class="profile-figure"> <img alt="Korma" src="-----HERE-----" /> </div>
But sometimes it works sometimes it doesnt work. Any help?Code:<?php $home = file_get_contents("http://www.habbohotel.co.uk/home/Korma"); $start = '<img alt="Korma" src="'; $end = '" />'; $pagedata = eregi("$start(.*)$end", $home, $output1); echo $output1[1]; ?>




Reply With Quote