C/C++ on Linux/Unix

Moderators: Lundin
Number of threads: 336
Number of posts: 663

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Shared Library Posted by tijoen on 5 May 2007 at 12:33 PM
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
Report
Re: Shared Library Posted by nugent on 7 May 2007 at 7:56 AM
you need to write a wrapper around your c library so php can use it, search google for extending php


------
nugent

Report
Re: Shared Library Posted by tijoen on 8 May 2007 at 12:21 PM
: 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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.