Solved

Call a function in Shared Library on Linux

Posted on 2006-11-16
1
295 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
Comment Utility
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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now