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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.