Solved

Call a function in Shared Library on Linux

Posted on 2006-11-16
1
297 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Sessions in WordPress 8 34
AWS EC2 & RDS Instance 5 37
How would I do this...? 2 28
How do uses indexes to maximize MySQL Searches 14 38
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

825 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