hi
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
[code=php]if ($res=msg_recei ve ($msg_id,2,$msg _type,100 , $msg,true, MSG_IPC_NOWAIT, $msg_err)){
echo "</br>".($msg)."</br>";
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
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
[code=php]if ($res=msg_recei ve ($msg_id,2,$msg _type,100 , $msg,true, MSG_IPC_NOWAIT, $msg_err)){
echo "</br>".($msg)."</br>";
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Comment