Skip to content

Instantly share code, notes, and snippets.

@ceejayoz
Created July 29, 2009 14:15
Show Gist options
  • Save ceejayoz/158183 to your computer and use it in GitHub Desktop.
Save ceejayoz/158183 to your computer and use it in GitHub Desktop.
<?php
$html = file_get_contents('http://nothnagle.travidia.com/ROP/Ads.aspx?advid=1105344');
preg_match('@<img.+class="adimg".+src="(.*)".*>@Uims', $html, $matches);
$image = $matches[1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment