Solved

Components??

Posted on 2002-07-09
1
180 Views
Last Modified: 2010-08-05
Is there a way to call an external C Library in PHP. My company is evaluating converting from Microsoft to Linux and we have some comobjects that are being called from certain pages. I can re-write the objects in C and make them a library but how do I call them from PHP.

Or is there another format that I should write them in.
0
Comment
Question by:onebadboy
1 Comment
 
LVL 7

Accepted Solution

by:
axis_img earned 100 total points
ID: 7141904
You can use dl() to load a dynamic library. More information can be found at:

http://www.php.net/manual/en/function.dl.php

You can also build in your proprietary modules into PHP and compile PHP with them; normally done with C.

http://www.php.net/manual/en/zend.possibilities.php
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 dynamically set the form action using jQuery.

840 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