my script crawl a site web given as input and displays all external links
but it posts up this error
atchable fatal error: Argument 1 passed to MyCrawler::handleDocumentInfo() must be an instance of PHPCrawlerDocumentInfo, null given, called in C:\wamp\www\1\exter.php on line 49 and defined in C:\wamp\www\1\exter.php on line 14
and i don't know how i can resolve this problem :/ , please heelp !!
this is my code
the problem is : $url[$i] is an url .but the argument of function 'handleDocumentInfo' must be an instance of class 'PHPCrawlerDocumentInfo'
i dont't know how create an instance of PHPCrawlerDocumentInfo by providing her $url[$i]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my script crawl a site web given as input and displays all external links
but it posts up this error
atchable fatal error: Argument 1 passed to MyCrawler::handleDocumentInfo() must be an instance of PHPCrawlerDocumentInfo, null given, called in C:\wamp\www\1\exter.php on line 49 and defined in C:\wamp\www\1\exter.php on line 14
and i don't know how i can resolve this problem :/ , please heelp !!
this is my code
//httpwww.annuaire-ag.com
?>
Last edit: khadija 2015-07-29
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
What happens if you print the array $url?
Looks like that one of the entries isn't correct.
the problem is : $url[$i] is an url .but the argument of function 'handleDocumentInfo' must be an instance of class 'PHPCrawlerDocumentInfo'
i dont't know how create an instance of PHPCrawlerDocumentInfo by providing her $url[$i]
Hi khadija,
sorry for my late answer!
I just don't understand what you are trying to achive by calling the handleDocumentInfo-method again recursively.
Do you want the crawler to request that URL?
Or am i missing something here?