communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "html and code" - download "get offsite code" - open demo of "get offsite code"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

html and code - get offsite code was created/last modified on Tue 20 Apr 2004 3:16 PM

this code grabs the html code from any website.
use it to filter out relevant info or text.
  
  
<?php
  
  $off_site
= 'http://php.net/fopen';
  
$fp = fopen ($off_site, 'r') or die('Unable to open file '.$off_site.' for reading');
  
  while (!
feof ($fp))
  {
      
$buf = trim(fgets($fp, 4096));
      echo
$buf;
  }
  
?>

learn more about some of the PHP functions used in this snippet: abs, die, echo, feof, fgets, file, fopen, for, trim, while

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

PHParadise.com - PHP-classes.org - your site on safari