For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2006 > Send XML from PHP to C++ Server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Send XML from PHP to C++ Server
worlin@hotmail.co.uk

2006-10-12, 6:59 pm

Hi All,

Is it possible to send an XML request from PHP to a C++ XML Server. The
server is listening on a port and I can connect and send xml via a
simple C++ client, but I can't get it going with PHP.

I connect to the port fine, but can't seam to send any information.

Can anyone shed any light on how to do this.

Thanks
Jay

Roy Kaldung

2006-10-12, 6:59 pm

worlin@hotmail.co.uk schrieb:
> Hi All,
>
> Is it possible to send an XML request from PHP to a C++ XML Server. The
> server is listening on a port and I can connect and send xml via a
> simple C++ client, but I can't get it going with PHP.
>
> I connect to the port fine, but can't seam to send any information.
>
> Can anyone shed any light on how to do this.
>
> Thanks
> Jay
>


Hi Jay,

if do you want to send the request via HTTP try it with PEAR's http
client (http://pear.php.net/package/HTTP_Client). Anyway, it would be
easier to help you with a code snippet of your c++ client.

hth

--
Roy Kaldung
roy {at} kaldung {dot} com
http://kaldung.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com