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 - if ($res=msg_receive ($msg_id,2,$msg_type,100 , $msg,true, MSG_IPC_NOWAIT, $msg_err)){
-
echo "</br>".($msg)."</br>";
-
}
[Please use CODE tags when posting source code. Thanks! --pbmods] 2 3264
i got the ans change the serialise option to false - if ($res=msg_receive ($msg_id,2,$msg_type,100 , $msg,false, MSG_IPC_NOWAIT, $msg_err)){
-
echo "</br>".($msg)."</br>";
-
}
Motoma 3,237
Recognized Expert Specialist
Glad you were able to find your solution, thank you for posting it back for us to learn from.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: jerrygarciuh |
last post by:
Hi all,
I was just wondering what popular opinion is on PHP giving this warning:
Warning: Invalid argument supplied for foreach() in
/home/boogerpic/public_html/my.php on line 6
when presented with an indefined variable.
It makes sense to me to warn if an unacceptably defined var is passed but it
|
by: AR |
last post by:
Hi,
Message queue problem. Perl program creates a message queue and send a
message to it. PHP program is to receive the message. Simple. But PHP's
msg_receive() is getting corrupted message. Can anyone tell me what is
wrong in the code?
Perl code
---------
|
by: Luna |
last post by:
Hi,
Can someone tell me how i could close a form if the 'OK' button is clicked in a message box.
i have attempted something like the following....
Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
MsgBox("If you continue, u will lose the current booking. Do you wish to continue?",
vbOKCancel)
If vbOK Then Me.Close() Else
|
by: Lee Rouse |
last post by:
Hello all,
This is going to be a rather lengthy "question".
I have an Access 2k database, separated front end/back end. Front end
copies are on about 30 workstations and used frequently during the
work day. The backend has a table called CLIENTS with approximately
6000 client records. Changes to data in the table are made via a
frontend db Form which has CLIENTS as its record source.
|
by: Gabest |
last post by:
After adding one more lib to my project, I keep getting this warning from
the linker (twice):
warning LNK4020: a type record in '<snip>\debug\vc70.pdb' is corrupted; some
symbols and types may not be accessible from the debugger
Any idea how to fix it?
| |
by: paytam |
last post by:
hi all
can you tell me what's the wrong with this code?
I use gcc compiler,but when I wanted to use
gets() function in my code but it takes a dangerous warning(the gets
function is dangerous
and should not be used),I don't know why.Any way,I decided to write my
own gets()
|
by: Phil Stanton |
last post by:
My Ak2 databas has been running successfully for many years althogh it gets
upgraded regularly.
I now find on this, and other dbs, when I delete a record I no longer get
the message "You are about to delete 1 record.....".
What has gone wrong / got changed?
Thanks Phil
|
by: santhanalakshmi |
last post by:
Hi,
<?php
mysql_connect('localhost','root','');
mysql_select_db('test');
$query="select * from phonedirectory";
$result=mysql_query($query);
echo "One Way To Print";
echo "<br>";
|
by: DannielHS |
last post by:
- Windows created the low disk space warning to alert computer users when their hard drive is running low on available disk space. Then you will see on a fairly regular basis as your hard drive fills up is the Low Disk Space warning in SBS Server: "You are running out of disk space on Local Disk . To free space on this drive by deleting old or unnecessary files, click here."
- Sometimes, you may just need to ignore or disable your Windows low...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |