Assuming you mean that the PHP script is on a web server somewhere and
the desktop app is hitting it over HTTP, it's no different than any
other response. Anything you print will be sent back to the client, in
this case your desktop a.. So if you want to send XML back, you'd build
a string with your XML (either manually or using the DOM or SimpleXML
APIs or a 3rd party like QueryPath or whatever floats your boat) and
print it, just as you would HTML.
Note that you may need to explicitly set headers with header() to make
sure the desktop app reads it properly.
On 3/4/11 5:48 PM, Ken Watkins wrote:
I have a Windows desktop app that I created using Visual Foxpro (a database
I want to write a PHP script that I will call from my desktop app. The script
query a MySQL database on my web server and return the recordset to the desktop
My question is simply this: What is the preferred method for passing this
to the desktop app? I'm assuming that there's no reasonable way to send a
without converting it to an array or XML or an object or something? How do I
data in the recordset to the desktop app?
Thanks for your advice.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php