Re: c++ program to be made a php extension

From: Date: Tue, 18 Oct 2005 07:33:00 +0000
Subject: Re: c++ program to be made a php extension
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3114@lists.php.net to get a copy of this message
Mike bio wrote: >Hello, > >I am quite new to php, but I know fairly well c and c++. I have a (4000 >lines) c++ program that does cut and merge of mpeg videos. I want to >make it a php extension, so it runs faster than calling it as an >external program. My question is which of the following strategies I >should follow >a) re-program all the c++ code as c, so it is easier to make it a php >extension >b) make a c-wrapper extension and call the c++ program through it >c) ? > >I am currently reading about php extension writing (books and tutorials) >but I have no glue what to do with the c++ program, since all php >extension writting I've seen is in c. > >Please help by direvting me the right way, and even suggesting some >books or other resources. There is also this tutorial by J. Smith: http://142.166.76.45/software/php5cpp/php5cpp/ Bertrand Mansion Mamasam

« previous php.pecl.dev (#3114) next »