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.
MyQ2004Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
babuno5Connect With a Mentor Commented:
here is a sample tutorial from ZEND about Writing Extensions for PHP
http://www.zend.com/php/internals/
another link that can help
http://www.devnewz.com/2002/0909.html
0
All Courses

From novice to tech pro — start learning today.