php why I get Class 'Thread' not found
The pthreads extension cannot be used in a web server environment. It is only available in the CLI.
Whatever you're trying to do, you'll need to come up with another way of doing it.
Php Class 'Thread' not found
Whilst Hassan Ahmed's reply explains why pthreads shouldn't be used in a web server environment, that is not the cause of the error you're receiving.
The problem is that the pthreads binary you have downloaded was not built for the PHP version you are using. This causes a mismatch between the pthreads' binary API and PHP's module API that it integrates into. Judging by your PHP version, you should be using the 2.0.10 release of pthreads, since that was the last stable release for PHP 5.6 version.
Note that support for pthreads for PHP 5.x versions is no longer maintained. If you would like the latest bug fixes and features, then use PHP 7.x and pthreads v3.
PHP Fatal error: Class 'Threaded' not found in C:\xampp\htdocs\
The line
class Task extends Threaded
should be changed to
class Task extends Thread
as shown in the first example
class workerThread extends Thread
on the PHP.net Site
Related Topics
The Ultimate Emoji Encoding Scheme
Codeigniter Redirect -- the Uri You Submitted Has Disallowed Characters
Is a Blob Converted Using the Current/Default Charset in MySQL
Prepared Parameterized Query with Pdo
How to Upload Large File > 5Mb in Laravel 5
How to Extract Http Links from a Paragraph and Store Them in a Array on PHP
JavaScript Cookies VS PHP Cookies
Set User Permissions | Artisan Command Will Not Run in Code But Works Fine on Command Line
"Warning: MySQL_Query(): Supplied Argument Is Not a Valid MySQL-Link Resource"
Warning: MySQL_Num_Rows() Expects Parameter 1 to Be Resource, Boolean Given
How to 'JSON_Encode()' Keys from PHP Array
PHP Session Variables Not Being Maintaned
Regex PHP: Find Everything in Div
Is There Any Legitimate Use for Bare Strings in PHP
Change Pay Button on Checkout Based on Woocommerce Chosen Payment Method