Re: PHP connection to external application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hce wrote:

> What is the best way for a PHP web application to connect to an
> external application written by C in Linux OS?
> 
> (1) Can PHP directly call external C functions, or similar solution?

PHP can call external executables via e.g. exec().

> (2) Can PHP pass messages to message queue which external C program
> can access?

PHP can write to a FIFO / pipe. 

> (3) Socket connection between the PHP and externam C program.

Yes, that works too.


What is "the best" depends on your requirements.


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux