I get following error:
Strict Standards: Declaration of MyCrawler::handleDocumentInfo() should be compatible with that of PHPCrawler::handleDocumentInfo() in C:\xampp\htdocs\PHPCrawl_080\example.php on line 11
Why's that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the phpcrawler-class internally uses type-hinting for the handleDocumentInfo()-method (for documentation rerasons).
So if you want to get rid of the error, just use type-hinting in your extended crawler-class as well:
I get following error:
Strict Standards: Declaration of MyCrawler::handleDocumentInfo() should be compatible with that of PHPCrawler::handleDocumentInfo() in C:\xampp\htdocs\PHPCrawl_080\example.php on line 11
Why's that?
Hi,
the phpcrawler-class internally uses type-hinting for the handleDocumentInfo()-method (for documentation rerasons).
So if you want to get rid of the error, just use type-hinting in your extended crawler-class as well:
The example-scripts coming with phpcrawl don't use it like that, i will change that in the next release.
Best regards!
.. just to mention: This is just a formal thing and doesn't affect functionallity or something.
you need specify the object like this
function handleDocumentInfo(PHPCrawlerDocumentInfo $DocInfo)
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Work 4 me. Thanks!
Last edit: Ariel Ale 2015-02-20
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Work 4 me too.
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Thank you all very much...this discussion helped me even after 3 years. Hope it will also help others in the future.