Parsing webpages with PHP
Posted by: Cobra
Posted on: 2007-07-08 16:24:00
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(http://www.cs.sfu.ca/) [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.