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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sr_paduri
Forum Newbie
Posts: 2
Joined: Mon Oct 11, 2004 10:02 pm

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

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

sr_paduri
Forum Newbie
Posts: 2
Joined: Mon Oct 11, 2004 10:02 pm

Is it not possible without using ZEND API?

Post by sr_paduri »

Thanks.Is it not possible without using ZEND API?I
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

perhaps it's possible via FFI.
Post Reply