Write a PHP function in C

php.internals

Christian-Kienle@losg.org

22 years ago
Hi, sometimes I miss some functions in PHP. Most of the times I write this function in PHP and put this function(s) in a extra file and include this file in every project I have. Now I want to write those functions I have collected over years in C. 1. for training 2. that i don't need to include my files where my functions are in every time. 3. for more performance? So - how can I do this? I have good C/C++ knowledges. I had a look at google, the PHP site and at the source code of PHP - but I found nothing. I am looking for a little HowTo/Tutorial how am I able to add new features to PHP - perhaps as a module (dont know if it is possible) or as a lib or as something else.. .:) Greets and TIA Christian

Thomas Seifert

22 years ago
On Sat, 17 Jul 2004 10:00:17 +0200, Christian-Kienle@Losg.Org wrote:
> I am looking for a little HowTo/Tutorial how am I able to add new features to > PHP - perhaps as a module (dont know if it is possible) or as a lib or as > something else.. .:)
Every tried the php-documentation? ;) http://www.php.net/manual/en/zend.php thomas

Christian-Kienle@losg.org

22 years ago
> Every tried the php-documentation? ;)
Oooops :) my fault... Thanks will work it througth Christian

Wez Furlong

22 years ago
Be warned that parts of it are somewhat out of date, but the basics are still applicable. --Wez. On Sat, 17 Jul 2004 10:31:55 +0200, Christian-Kienle@losg.org <christian-kienle@losg.org> wrote:

Michael Sims

22 years ago
Christian-Kienle@losg.org wrote:
> I am looking for a little HowTo/Tutorial how am I able to add new > features to PHP - perhaps as a module (dont know if it is possible) > or as a lib or as something else.. .:)
The last few chapters of George Schlossnagle's "Advanced PHP Programming" are devoted to this topic... http://www.amazon.com/exec/obidos/tg/detail/-/0672325616/

Hartmut Holzgraefe

22 years ago
Christian-Kienle@losg.org wrote:
> I am looking for a little HowTo/Tutorial how am I able to add new features to > PHP - perhaps as a module (dont know if it is possible) or as a lib or as > something else.. .:)
The usual shameless plug: you may also want to have a look at PECL_Gen Download => http://pecl.php.net/package/PECL_Gen Documentation => http://cvs.php.net/co.php/pecl/PECL_Gen/manual.html?p=1
-- Hartmut Holzgraefe <hartmut@php.net>