Page 1 of 1

How to call the methods of .so file(Code) in php application

Posted: Mon Oct 11, 2004 10:18 pm
by sr_paduri
Hi
I need to access few methods of shared object, this shared object is written C.
This is totally independant of php application.

I tired in different ways like

dl("libtest.so")

and

giving the name in extension tag of php.ini file.


But I am getting invalid php library error.

Anybody can advise me, how to intergrate php applications with external components.

Thanks

Posted: Tue Oct 12, 2004 5:54 am
by Weirdan

Is it not possible without using ZEND API?

Posted: Thu Oct 14, 2004 10:35 am
by sr_paduri
Thanks.Is it not possible without using ZEND API?I

Posted: Fri Oct 15, 2004 12:50 pm
by Weirdan
perhaps it's possible via FFI.