Solved

Call a function in Shared Library on Linux

Posted on 2006-11-16
1
298 Views
Last Modified: 2006-12-24
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.
0
Comment
Question by:MyQ2004
1 Comment
 
LVL 15

Accepted Solution

by:
babuno5 earned 100 total points
ID: 17958215
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to refresh a page from a sub domain in ajax ? 34 43
MSSQL - Lock Row from reading by other programs 9 57
PHP 5.6 and 7.x 4 37
Make login page safer 3 30
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question