Comments - Non-blocking calls from PHP

8 years, 1 month ago Michael Shestero

It's not useful to do temporary files in multiuser multitask system.

I know one better way to do the task: you can do unbuffered reading in a separate second PHP scipt and call it from the main script by HTTP (using localhost). Then you can read its TCP-socket asynchronous (it's also not graceful in PHP, but possible).

Node.JS support async requests to MySQL (through new MariaDB clent API). Does anybody know if it's possible to ineract from PHP to Node.JS in a async non-blocking way?

 
8 years, 1 month ago Justin Swanhart Swanhart

yes it is useful. you assign a random filename then you poll it. but do what you want, the solution I proposed will work just fine

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.