Login   Register  
PHP Classes
elePHPant
Icontem

File: fetch_sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rahman Haghparast  >  Fetch Link Class  >  fetch_sample.php  >  Download  
File: fetch_sample.php
Role: Example script
Content type: text/plain
Description: a sample page that retrieves all the links in Yahoo! first page
Class: Fetch Link Class
This class extracts every link in a web page
Author: By
Last change:
Date: 11 years ago
Size: 202 bytes
 

Contents

Class file image Download
<?php
include "fetch.class.php";
$spider=new fetchlinks("http://yahoo.com");
echo 
"Link Captions:<br>";
$spider->show_caption(1);
echo 
"<br>";
echo 
"Link Targets:<br>";
$spider->show_href(1);
?>