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
You seem to have CSS turned off.
Please don't fill out this field.
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:
class MyCrawler extends PHPCrawler
function handleDocumentInfo([b]PHPCrawlerDocumentInfo[/b] $DocInfo)
The example-scripts coming with phpcrawl don't use it like that, i will change that in the next release.
.. 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)
Work 4 me. Thanks!
Work 4 me too.