Link to home
Start Free TrialLog in
Avatar of MyQ2004
MyQ2004

asked on

Call a function in Shared Library on Linux

I created a shared library written in C/C++. How do I a call a function in the shared library from PHP ?

Functions in shared library:
1.
void SetCurrentPos(int pos)
{
}

2.
int GetCurrentPos()
{
     return m_Pos;
}

Could anyone show me a simple example of how I could call the above function in PHP ? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of babuno5
babuno5
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial