Thanks for that, Jay's moved his site since I wrote about it! Updating.
- Steph
- Original Message -
From: "Andrew Mather" <[EMAIL PROTECTED]>
To:
Sent: Monday, February 20, 2006 12:00 PM
Subject: [PHP-DEV] RESOLVED (sort of): [PHP-DEV] PHP / C++ Interaction
George Schlossnagle sent me the following link to a a tutorial by Jay Smith:
http://142.166.76.45/software/php5cpp/php5cpp/
This provides full code for a C++ based extension.
On a Suse 9.3 distribution of Php5 this results in an (unresolved) error,
but with an Apache2/Php5 build from source, the
Steph Fox wrote:
Just search the archives, or the zend weeklies index page
(http://www.zend.com/zend/week/) if you're short of time. I remember
linking to someone's material regarding C++ extensions for PHP a few
months back, and it'll be in the 'item descriptions' there.
Yet another shameles
h
- Original Message -
From: "Jeremy Johnstone" <[EMAIL PROTECTED]>
To: "Andrew Mather" <[EMAIL PROTECTED]>
Cc:
Sent: Monday, February 20, 2006 3:08 AM
Subject: Re: [PHP-DEV] PHP / C++ Interaction
On 2/13/06, Andrew Mather <[EMAIL PROTECTED]> wrote:
-
On 2/13/06, Andrew Mather <[EMAIL PROTECTED]> wrote:
>
> - can I talk to a C++ library from PHP, either directly or via
> a PHP/C extension?
You could just have the PHP extension written in C++. There is no
requirement of PHP extensions to be written in C, you just need to make sure
you properly
Andrew Mather schrieb:
> is there a 'com'/.Net equivalent on Linux to permit language
> independent calls?
http://pecl.php.net/package/ffi might be what you're looking for.
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6
Having got a PHP/C extension .so shared library working,
(courtesy this mailing list), and now also ported a C++
data server to Linux, which could also be a (C++) .so, the
obvious question is:
- can I talk to a C++ library from PHP, either directly or via
a PHP/C extension?
- aka: is there a 'co