PHP and C libraries

Hello,

How do I call functions within a C library so that they run when called
with PHP?

Can someone please supply an example, perhaps with a real C library?

I am trying to work with the Swiss ephemeris library and PHP.



otis
Otie [ Di, 27 März 2007 10:04 ] [ ID #1670116 ]

Re: PHP and C libraries

On Mar 27, 10:04 am, Otis <otie_nos... [at] adelphia.net> wrote:
> How do I call functions within a C library so that they run when called
> with PHP?

Dear Otis,

There is a pear library http://pear.php.net/package/Inline_C but I
doubt it is usable with a whole C library.
You could also try to compile your C library as php extension. I read
about it in

http://www.amazon.com/Building-Custom-Extensions-Blake-Schwe ndiman/dp/1411601882/

Good luck
Martin

------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at
Martin Mandl - m2m te [ Di, 27 März 2007 12:00 ] [ ID #1670118 ]

Re: PHP and C libraries

I Otis,
look at http://swephp.rgbsoft.net
There is a nice implementation of swephe for PHP;
but only implemented on Linux platform.
I'm trying to do this on windows.

Regards,
xiq
xiq [ Di, 21 August 2007 22:03 ] [ ID #1801444 ]
PHP » alt.php » PHP and C libraries

Vorheriges Thema: Edit existing pdf document
Nächstes Thema: Frames alternative?