Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Is there any library or package to fork a process on FuelPHP?
soseki
April 2017
Hi,
I looked at documentation, but, nothing found.
So, possibly am I have to fork myself?
Regards,
Masao
Harro
April 2017
Accepted Answer
Not that I am aware of.
There is a package for background processing using a job queue, but that is probably more than you need.
But perhaps a composer package exists, Fuel is compatibile with any generic composer package.
soseki
April 2017
Oh! That is right.
What I need is I want to make multiple http get
requests
in parallel because of too much wait time.
Possibly, I should look for something like light weight library.
I will take a look composer packages.
Thanks,
Harro
April 2017
Accepted Answer
This one seems to be installed a lot:
https://packagist.org/packages/duncan3dc/fork-helper
soseki
April 2017
Thank you very much for your information.
I will take a look.
soseki
April 2017
I can not use the one you give to me as well as other package from packagist because of PHP version.
So, I try to use curl_multi_init() to handle multiple HTTP GET requests.
This is so sad for me....
Harro
April 2017
What is your PHP version? Or are you running on Windows?
soseki
April 2017
PHP 5.3.10
I know that this is too old.
Harro
April 2017
Accepted Answer
I did a quick scan of the fork-helper code.
I think the main reason it requires PHP 7 is that it defines method return types and uses type hinting:
public
function
wait
(
int
$pid
=
null
):
self
You could just make a fork of the code, and modify it, that shouldn't be too difficult:
public
function
wait
(
$pid
=
null
)
soseki
April 2017
Yeah, it is not that difficult.
I may try to modify and implement it.
Thank you
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
April 2017
soseki
April 2017