Hi..
I am trying to call a c function from a PHP.
But i am getting following error.
Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/example.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/example.so: cannot open shared object file: No such file or directory in /var/www/html/example.php on line 22
Fatal error: Call to undefined function fact() in /var/www/html/test.php on line 8
My php file and .c .i file resides in /var/www/html folder.
I am compiling the file in same folder. So .so an other files are created to same folder
also extension in php.ini is given to /var/www/html/example.so
Still i am getting the above error.
What is the remidy?
Regards
Dheeraj Joshi M
I am trying to call a c function from a PHP.
But i am getting following error.
Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/example.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/example.so: cannot open shared object file: No such file or directory in /var/www/html/example.php on line 22
Fatal error: Call to undefined function fact() in /var/www/html/test.php on line 8
My php file and .c .i file resides in /var/www/html folder.
I am compiling the file in same folder. So .so an other files are created to same folder
also extension in php.ini is given to /var/www/html/example.so
Still i am getting the above error.
What is the remidy?
Regards
Dheeraj Joshi M
Comment