PHP and C libraries
am 27.03.2007 10:04:57 von Otie
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
Re: PHP and C libraries
am 27.03.2007 12:00:59 von Martin Mandl - m2m tech support
On Mar 27, 10:04 am, Otis 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
Re: PHP and C libraries
am 21.08.2007 22:03:42 von xiq
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