there does not seem to be much litrature around that can help with coding php and "c classes or libraries".
where can i find or start looking for stuff to read up on the combination of php and c classes (any c that is c++, c#...)
there does not seem to be much litrature around that can help with coding php and "c classes or libraries".
where can i find or start looking for stuff to read up on the combination of php and c classes (any c that is c++, c#...)
Perhaps this might give some pointers about how to start.
thanks...hmm... but this is like saying "hey, here is the php (zend)manual, it will help!"
i searched the entire php manual and not one occurrence of "c classes" appears. does this mean no functionality with "c", i think not.
Really, how you gonna be able to build an extension if you dont any of ZEND/PHP's functions, datatypes or macro's. You'll need to learn about ZEND/PHP's API to be able to build a module or extension to PHP with C. To get a basic idea of this just read the first 10 or so pages off the link weedpacket provided, it quite enlightening.
there is no need to build extensions, or to design c libraries. all that jazz exists and is currenly in production. i want to find a way to use them as is. thank you - i did read the first ten pages but this just confirms that it is not what i mean when i speak of php and c libraries.
i also understand the ;extensions in php.ini and the basics of the bool dl ( string library ) function...as well as several other functions like extension_loaded().
what i am looking for is litrature and other readings besides the manuals.
You could extend PHP to use existing libraries and classes in the same way that it already does so for things like cURL and LibMcrypt: write Zend API wrappers that call those libraries (this is why we have header files). You're going to have to write something, after all - otherwise how is PHP supposed to know how to use your library?
A(nother) source of information on this would therefore appear to be the PHP source code. PHP's source code for its mcrypt functions is under 50kB, and that for cURL is just over.
Of course, if you just want to build your existing code as standalone executables and have PHP run it that way, you can ... doesn't matter how they're written, then.