SearchSearch   

PHP and C libraries

 
   Webmaster Forums (Home) -> PHP RSS
Next:  freelance php programmers needed  
Author Message
Otis

External


Since: Mar 27, 2007
Posts: 1



(Msg. 1) Posted: Tue Mar 27, 2007 1:04 am
Post subject: PHP and C libraries
Archived from groups: alt>php (more info?)

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
Back to top
Martin Mandl - m2m tech s

External


Since: Feb 23, 2007
Posts: 34



(Msg. 2) Posted: Tue Mar 27, 2007 3:00 am
Post subject: Re: PHP and C libraries
Archived from groups: per prev. post (more info?)

On Mar 27, 10:04 am, Otis <otie_nos....DeleteThis@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-Schwendiman/dp/...1601882

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
Back to top
xiq

External


Since: Aug 21, 2007
Posts: 1



(Msg. 3) Posted: Tue Aug 21, 2007 4:03 pm
Post subject: Re: PHP and C libraries
Archived from groups: per prev. post (more info?)

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
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> PHP
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum