im trying to receive message from a C program to a php script. while receiving i have used non blocking flag in php. But when i try to read the message
"Warning: msg_receive(): message corrupted " is displayed.
i can see that the message from C prog is reaching the queue n its is picked up by
php script.
if i dont use the non blocking flag then i can view the message properly.
This is the receiving part of my code
Expand|Select|Wrap|Line Numbers
- if ($res=msg_receive ($msg_id,2,$msg_type,100 , $msg,true, MSG_IPC_NOWAIT, $msg_err)){
- echo "</br>".($msg)."</br>";
- }