Home > Software engineering >  Call to undefined function sem_get() for implemeting queue in PHP
Call to undefined function sem_get() for implemeting queue in PHP

Time:12-19

I want to implement queues in PHP using FIFO. For this, I have installed Semophore.

enter image description here

But I am getting the error "Call to undefined function sem_get()"

It seems like it is showing in phpinfo, but still giving error

Any help?

CodePudding user response:

I was unable to work but I have implemented a queue using Redis in PHP

$redis = new Redis(); 
$redis->connect('127.0.0.1', 6379); 
//set the data in redis string 
$redis->set("quenename", "enter queue name");    
   
//Getting data in redis string   
$redis→get("quenename");
  • Related