RE: [PHP] From PHP to C and viceversa

From: Date: Mon, 13 Oct 2003 12:34:45 +0000
Subject: RE: [PHP] From PHP to C and viceversa
Groups: php.general 
Request: Send a blank email to php-general+get-165968@lists.php.net to get a copy of this message
>I have apache under linux and I want to exchange data >from a php script to a c programm (some strings): is it possible? Yes in multiple ways. First off you need to figure out if you have the source for the C application. If so you can use sockets, the MySQL client API, and various other connectivity methods. Since it's using a script I'm assuming it's not an extremely high concurrency application, then using the MySQL client API would be the most robust option. The only other way to do it without the source, at least that comes to mind, would be to output a file from PHP if the C application takes input from a file. Regards. -Gregory P.S. Try to elaborate a bit more with your requests next time.

« previous php.general (#165968) next »