Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux message queue between php & C

Status
Not open for further replies.

sjlacroix

Programmer
Joined
Feb 8, 2004
Messages
3
Location
US
I'm working on a app that requires IPC (Message queues) between a C prog & php. The problem I'm running into is that the vars sent to the queue via php are represented like so comming into the queue:
From php: Test
In the Q: s:4:"Test"

Is their a way to Just have it send the word Test and not all the php var struct with it? I really don't want to have to build a parser for it.

 
Just sending the var to the to queue directly.

msg_send ($this->key_t, $this->MsgType, $var, true, false, $msg_err)

Also tryed just sending text directly via "Test":
msg_send ($this->key_t, $this->MsgType, "TEST", true, false, $msg_err)
 
That will teach me to read the functions description.

Thanks

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top