Skip to content

Instantly share code, notes, and snippets.

View DanePham's full-sized avatar
😉

DanePham

😉
View GitHub Profile
@lokisho
lokisho / pthreads_howto.md
Last active May 24, 2022 01:49
How to install multithreads (pthreads) for php 7.3 ubuntu 18.04

Tutorial

pthreads allows to use multiple threads when running a php script with php cli.

Important: it only works for php cli, not in a web browser
The reasons for that can be found in the article recommended in Acknowledgments and resources section.
We are following 3 steps.
  • Install php7.3 as usual for our web server applications (if you pretend to use only php cli in your server, you can skip this step).