Re:Stop writing PHP like it's 2009
by dustball64 on Tuesday July 18, 2017 @03:01PM
(#14799140)
I'm a little confused and am seeing conflicting information everywhere. How can I use async queries in PHP right now? It looks like the code the author wrote is in Hack. Can Hack code be injected like that into the PHP file, or does it require me to write a separate file and somehow link it to PHP?
[ Parent
| on HN ]
That that I know of, but [after a brief stint using Hack] I wrote up a custom module that supports this functionality using curl in PHP 7 to spawn up multiple threads. It's a touch messy to implement, but totally possible if you want it.