if you want to integrate the c/c++ codes in php you can use the build_skel 
that follows php to do this. write:

./build_skel --extname=calculate --proto=/path/to/calculate.proto 
--assign-params

where extname is the extension name and proto is a file containing the 
prototypes of the functions to create. something like this:

void calc_over( double value )
double calc_under( double value, double type )

and so on... im sure there are howtos and such on the net, so i dont botter 
writing it all down. 

Terje

On Wed, 18 Jun 2003 16:56:52 +0200, Cpt John W. Holmes wrote
(in message <[EMAIL PROTECTED]>):

>> Anyway, can any make a suggestion on how to connect to a c function from
>> a php app?
>> 
>> I have to connect to a sales tax calculation software.  The function
>> is being written for me but I have to figure how to call it - get the
>> variable - and use it again in my php app.
>> 
>> I've been told there's an api or module on the php site with
>> documentation that I am trying to research.
>> 
>> Has anybody ever done this ?
> 
> I'm sure you could compile it into PHP somehow, if you wanted to go that
> route. I can't help you there, though.
> 
> Or, you could just compile your C function into a stand-alone program and
> call it through exec(), passing the parameters it needs and then retrieving
> the output.
> 
> Why not just "port" the C code over to PHP??
> 
> ---John Holmes...
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to