Re: [fw-general] Calling non-php library
Bin Hu-3 wrote: some other reasons, I want to call an external library written in C++. Bin I thought this is what PECL is http://pecl.php.net/, you compile the c++ as a php interface, then call it like a normal function. Or compile your c++ as a normal app, then call it using system (I do this with Python all the time) read the vars from a DB or command line. I use a DB to provide feed back, so a AJAX page pings the DB for a % complete. monk.e.boy -- View this message in context: http://www.nabble.com/Calling-non-php-library-tp20786028p20788583.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Calling non-php library
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Take a look at this wonderful PECL tutorial by Sara Golemon: http://devzone.zend.com/node/view/id/1021 Ben ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : ::: : Web: http://www.dasprids.de : : E-mail : [EMAIL PROTECTED] : : Jabber : [EMAIL PROTECTED] : : ICQ: 105677955 : ::: monk.e.boy schrieb: Bin Hu-3 wrote: some other reasons, I want to call an external library written in C++. Bin I thought this is what PECL is http://pecl.php.net/, you compile the c++ as a php interface, then call it like a normal function. Or compile your c++ as a normal app, then call it using system (I do this with Python all the time) read the vars from a DB or command line. I use a DB to provide feed back, so a AJAX page pings the DB for a % complete. monk.e.boy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkk0/WkACgkQ0HfT5Ws789AVuwCg06HKst/viziCaOIRKioNFUZd M1YAnibdKnQubItA7mP4bho8hl+/AsQG =dsTQ -END PGP SIGNATURE-
Re: [fw-general] Calling non-php library
no that is not possible. however it should be realitvly straightforward to compile the c++ library into your php and offer a frontend to PHP for it. This is not as hard as it sounds, you should find some information by googling that issue :) On Mon, 1 Dec 2008 21:37:32 -0700, Bin Hu [EMAIL PROTECTED] wrote: Hello, I have been using ZF for sometime and really enjoyed it. Now I am trying to develop a more complex web application. For performance and some other reasons, I want to call an external library written in C++. Is it possible to do so from PHP? Thanks. Bin