Re: Is linkage to C/C++ lib or programs in Unix possible?
| From: | Maxim Derkachev | Date: | Thu, 15 Mar 2001 08:48:21 +0000 |
| Subject: | Re: Is linkage to C/C++ lib or programs in Unix possible? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43995@lists.php.net to get a copy of this message | ||
Hello Martin,
Thursday, March 15, 2001, 11:20:58 AM, you wrote:
ML> Is it possible to make PHP be able to communicate with existing C/C++
ML> libaries/programs in Unix/Linux environments? That is, I may send a
ML> message to the C/C++ stuff, and get some feedbacks from them.
For programs, use system() (if they can accept arguments in a comand
string and return values to STDOUT).
For libraries - only if you wrote a PHP extension using those
libraries. PHP programs have no C-style access to memory, so they can
not communicate with C libraries that not aware of PHP.
--
Best regards,
Maxim Derkachev mailto:kot@books.ru
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia