Tuesday, February 13, 2007

Function ReadPage

This is not a class function.
It resides outside of the class definition.

function readpage($url,$till,$occ,$morelen)

//readpage("http://search.yahoo.com/search?p=link%3Ahttp%3A%2F%2F".$this->url."+-".$this->GetDomainName(),
//
http://search.yahoo.com/search?p=link%3Ahttp%3A%2F%2Fwww.salesforce.com+-www.salesforce.com
//"

Search Results

",
//1,
//100);

$url contains the link that will fetch the search result.
$till contains a string, in this case /"

Search Results

/"
$occ contains a number, in this case 1
$morelen contains a number, in this case 100.


And I don't like the idea of this function.
It is trying to do several things, and the logic is not clear.

I think I am going to revert to the Fetch_content function.


No comments: