Page 1 of 1

Connecting client application to web server with PHP

Posted: Mon Jun 06, 2005 5:14 am
by serenity999
I need to connect Paradox based client application to PHP-server. Reason is that the application needs to be able to send and receive XML based invoices. The invoice data needs to be parsed to XML format. The XML parsing would be nice to do with PHP rather than ObjectPal used in Paradox because PHP is much more cabaple text processing tool.

There is only one problem I am facing... I know I can install PHP to client side so it could do the XML parsing directly from and to Paradox database with ODBC connectivity. But is possible to send and receive the XML document with a PHP enabled server that could then further process the requests that reguire use of SOAP+XML-RPC to the business to business network that carries the invoices ?

To put it short... If I do the XML parsing with PHP at client side (windows systems), can I send them to my web-server with PHP:s own tools ? Does PHP have network connectivity without web-server ?

Posted: Mon Jun 06, 2005 6:04 am
by malcolmboston
PHP + Client-side = :roll: #

PHP is a server side language not client-side, PHP only prepares for client-side no actual processing is done at the client level

Re: Connecting client application to web server with PHP

Posted: Mon Jun 06, 2005 6:08 am
by malcolmboston
in regards to
serenity999 wrote:Does PHP have network connectivity without web-server ?
PHP can be run in one of 2 forms, as an apache modules or as CGI, the former and most standard way requires a web-browsers, the other, command-line

also you may want to take a look at PHP-GTK for more advanced uses of PHP

Re: Connecting client application to web server with PHP

Posted: Mon Jun 06, 2005 6:28 am
by serenity999
malcolmboston wrote:in regards to
serenity999 wrote:Does PHP have network connectivity without web-server ?
PHP can be run in one of 2 forms, as an apache modules or as CGI, the former and most standard way requires a web-browsers, the other, command-line

also you may want to take a look at PHP-GTK for more advanced uses of PHP
I am familiar with normal use of PHP and what I am trying to do might seem a bit unconventional. I can run PHP from command-line in windows and I can build scripts to parse XML documents and read/write directly to Paradox databases at client side. PHP can be installed with Paradox application as a powerful text processing tool to be used with the main application. I just wondered that it may be impossible to make network connections from such a installation without a web-server ? Of course I can use http/ftp controlled by Paradox app to transfer PHP processed XML documents but it would be nices if I could do the same from client side PHP script.

Posted: Mon Jun 06, 2005 6:38 am
by Weirdan
serenity999 wrote: I just wondered that it may be impossible to make network connections from such a installation without a web-server ?
Take a look at cURL extension. There are PHP SOAP implementations as well: http://www.google.com/search?q=php%20soap