html and code
|get offsite code
| see demonstration of get offsite codethis code grabs the html code from any website.
use it to filter out relevant info or text.
full source of get offsite code [ line 1 - 10 ] | download get offsite code
| 1 | <?php |
| 2 | $off_site = 'http://www.opengroup.org/onlinepubs/007908799/xsh/fopen.html'; |
| 3 | $fp = fopen ($off_site, 'r') or die('Unable to open file '.$off_site.' for reading'); |
| 4 | echo '</pre>'; // just for the demonstration - remove when using this code |
| 5 | while (!feof ($fp)) |
| 6 | { |
| 7 | $buf = trim(fgets($fp, 4096)); |
| 8 | echo $buf; |
| 9 | } |
| 10 | ?> |
25 hits by 14 users in the last 30 minutes.