A regex I have built is now working perfectly on Linux with PHP 4.3.3 when preg_match_all parses the html page locally, but does not work when I try to parse it remotely (in both cases using fopen).
My goal is to grab links from an online Web page.
<?
$abrir = fopen("tribunam.html", "r"); /*This is working !!! */
/*$abrir = fopen("http://www.xxxxxxxxx.com", "r"); This is not working, I get an empty result*/
$leer = fread($abrir, 30000);
preg_match_all("/(?i)<(H[1-6]|A)([^>]+HREF=\"(.*)\"[^>]*|[^>]*)>((.|\n)*)<\/\\1[^>]*>/U",$leer,$titular); ?>
PS: This message continues from my previous post.
Please help!