msg_queue_exists is not working in my web browser

msg_queue_exists() is not working in web browser :frowning:

           echo " chk1 " ;

try {
echo " chk2 " ;
if (msg_queue_exists(12345)) {
echo " chk3 " ;
$key_t = msg_get_queue(12345);
}
echo " chk4 " ;
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), “\n”;
}
echo " key ".$key_t;

When I am executing above code from browser, it prints only chk1 and chk2.
Seems program hanged after msg_queue_exists(). neither chk4 nor Caught exception printed in browser.

Can some please help…

Add this above your chk1

[php]error_reporting(E_ALL);
ini_set(“display_errors”, 1);[/php]

The function might be be compiled in your PHP Installation…

http://php.net/manual/en/sem.installation.php

Sponsor our Newsletter | Privacy Policy | Terms of Service