Parsing webpages with PHP

I tried to run a script I found while searhcing online that scrapes links from a given webpage ( source ). I copied the code into a php file of my own and tried to run it. I got an two errors about line 57 (where the data is echoed near the end of the file).

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.poirot/—/---/test/scrape.php on line 57

Warning: file_get_contents( [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.poirot/—/---/test/scrape.php on line 57

I tried a few different things to get the script to work. Obviously (since I’m posting here) I couldn’t get it to work.

This is your problem.

si-blog | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]