I have a github repo for phpcrawl that I'm using successfully in PHP8. It's installable by composer, or you can just download and install the package where you want. https://github.com/JamesShaver/phpcrawl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2024-05-17
you the best
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I have downloaded and extracted PHPCrawl, and when i run
php Example.php i get the following output.
Any help, or someone to tell me what im doing wrong, would be greatly appreciated.
What version of PHP are you using?
https://www.php.net/manual/en/function.each.php
PHP 8.1.7-1ubuntu3.1 (cli) (built: Nov 2 2022 13:39:03) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Zend OPcache v8.1.7-1ubuntu3.1, Copyright (c), by Zend Technologies
There's your problem.
So is it as simple as finding
and changing each to another function? if so what would the new function be?
Maybe, but that's only your first error. Be prepared for other php8 differences that won't work.
I have a github repo for phpcrawl that I'm using successfully in PHP8. It's installable by composer, or you can just download and install the package where you want.
https://github.com/JamesShaver/phpcrawl
you the best