This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Basic scraping demo with "find-replace" parsing | |
| * Owen Mundy Copyright 2011 GNU/GPL */ | |
| $url = "http://www.bbc.co.uk/news/"; // 0. url to start with | |
| $contents = file_get_contents($url); // 1. get contents of page in a string | |
| // 2. search and replace contents |
NewerOlder