Hey PHP developers I am newbie.
Today I want to run my process.php
file in the background because it takes too much time to load... Here is the code that I want to use.
$proc=new BackgroundProcess();
$proc->setCmd('exec php <BASE_PATH>/process.php hello world');
$proc->start();
And I want to add this ids=$postid&reaction=$reaction
variable instead of hello world.
And want to receive it with post in process.php
file like this
$id =$_POST['ids'];
$type = $_POST['reaction'];
I am using this GitHub file https://github.com/pandasanjay/php-script-background-processer/blob/master/README.md
Before doing downvote answer me I am a newbie in PHP.