I am attempting to grab and parse the National Lottery web site using PHP for my 3rd Year Project. However, I have run into some difficulties. The script does not connect to the site and, the following message is displayed:
Warning: File("http://www.lotto.ie/text_history.asp?call=2") - Connection refused in /home/member/s/scum/public_html/results.php3 on line 10
Our code is:
$url = 'http://www.lotto.ie/text_history.asp?call=2';
$lines_array = file($url);
I thought that there might be some security barriers, but the URL works fine. Also, the code if grand for grabbing pages on tthe local server. I'm now wondering if you just can't grab pages outside the local server.
Any ideas would be greatly appreciated
Padraig.