First of all I'm sure this has been asked before, I couldn't find anything and I'm in a hurry to get this done
(The show 'lost' comes on soon heh)
Code: Select all
<?php
$html=file_get_contents($url);
$html = preg_match_all("/(http:\/\/(.*))[\s]*/", $html, $matches);
// I know it's print_r, print_arr is a function I made that color codes the array
print_arr($matches);
?>I suck with all these special characters heh, anyone know what I'm doing wrong?
EDIT... seems to work on a few pages i try but not in all cases, try to run it on http://www.google.com/search?hl=en&q=te ... gle+Search for example