Hi,
I have made database library (using ODBC API's in C++) and charting engine (for making charts on fly using gdchart library).
Our requirement is to use this existing libraries in PHP.
And this is possible by extending the PHP => making external module or build-in modules or Zend Engine.
I have following queries :
Is is possible to extend the php support using the existing C++ set of classes ?
If yes, Please let me know how could I get the details for extending existing C++ set of classes (API) to be used for extending PHP Support by making modules (external/build-in/Zend Engine)
I have gone through the Zend API Documentation and the samples given (e.g. first_module,etc).
I have followed the steps as per the samples given :
./ext_skel --extname=testing
cd ..
vi ext/testing/config.m4
config.m4
-----------
PHP_ARG_ENABLE(testing, whether to enable testing support,
dnl Make sure that the comment is aligned:
[ --enable-testing Enable testing support])
if test "$PHP_TESTING" != "no"; then
PHP_EXTENSION(testing, $ext_shared)
fi
./buildconf
./configure --enable-testing=yes
make
./php -f ext/testing/testing.php
output :
Congratulations, you have successfully modified
ext/testing/config.m4, module testing is compiled into PHP
Now Starting Apache web server :
cd /usr/local/apache/bin/
./apachectl restart
Message : ./apachectl restart: httpd restarted
I copied testing.php to => /usr/local/apache/htdocs/.
Now Opening the web browser : http://jaguar/testing.php gives this error :
(jaguar is the machine on which apache is running, home page of apache is running.. checked.)
Module testing is not compiled into PHP
I have not changed any other files in ext/testing/ folder.
Please let me know the exact way to approach for this problem...
Its really very urgent..Sorry for trouble..
Thanks in advance.
Regards,
Atur Shah.
Software Developer,
Vigorsoft Pvt. Ltd.,
India