Re: How to get a string from C library into PHP via SWIG?
| From: | Nathan Nobbe | Date: | Tue, 05 Jan 2010 22:56:11 +0000 |
| Subject: | Re: How to get a string from C library into PHP via SWIG? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300834@lists.php.net to get a copy of this message | ||
On Tue, Jan 5, 2010 at 3:42 PM, Eric Fowler <eric.fowler@gmail.com> wrote:
> Hm, that could work, but it does produce overhead.
>
you should consider your overall communication paradigm. im very loosely
familiar w/ swig, basically ive heard of it ...
anyways, you have a few options for communication,
. shell (call php from C or the other way around)
. php extension, this may not make sense depending on what your C is doing
and is by far the most complex
. network protocol, socket, http or other..
can you tell us a little bit more about what youre trying to accomplish and
specifically how C and php are communicating in general in your application?
-nathan