Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Shared Library

tijoentijoen Member Posts: 141
Hi
I want to build a library with a connection to a database
then, when I install it on a server, I want to use it within a C software and the same library in a PHP script
because I want to reuse the code in php and in the c program
the shared library will be written in C as well

please, this is possible, right?
help please!

thank you

Comments

  • nugentnugent Member Posts: 87
    you need to write a wrapper around your c library so php can use it, search google for extending php


    ------
    nugent

  • tijoentijoen Member Posts: 141
    : you need to write a wrapper around your c library so php can use it,
    : search google for extending php
    :
    :
    : ------
    : nugent
    :
    :
    wow
    i went google to search for it
    it is horrible compared to microsoft
    using COM objects you can install it in your server with regsrv32 and all your apps can easily use it
    http://www.php.net/~wez/extending-php.pdf
    you have to create a whole different world in your c software, just to php regonize it
    like use PHP_FUNCTION and such things
    sux :(
    going to study it...
    if you have an example or somewhere with resources to learn how to add a c++ software to php, let me know please

    and thanks for your help!

    Joe
Sign In or Register to comment.