问题描述
嗨..
我试图从PHP调用交流功能。
但是我收到了以下错误。
警告:dl():无法加载动态库''/usr/local/lib/php/extensions/no-debug-non-zts-20090626/example.so'' - / usr / local / lib / php /extensions/no-debug-non-zts-20090626/example.so:无法打开共享对象文件:第22行/var/www/html/example.php中没有此类文件或目录
致命错误:在第8行的/var/www/html/test.php中调用未定义的函数fact()
我的php文件和.c .i文件位于/ var / www / html文件夹。
我正在编译同一文件夹中的文件。所以.so其他文件被创建到同一个文件夹
php.ini中的扩展也被赋予/var/www/html/example.so
我仍然收到上述错误。
什么是remidy?
问候
Dheeraj Joshi M
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
推荐答案
这篇关于PHP和SWIG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!