php işlevi yazmak nasıl

3 Cevap php

hi i want to know how i can write php function in c (like strtoupper). if is there any tutorial please put it here

teşekkürler

3 Cevap

PHP kullanılan C bir işlev yazmak için, bir uzantı yazmak gerekecek.

Ki mevcut hakkında pek çok bilgiler maalesef, yok ...

Yine de benim imleri arasında arama, burada buldum bağlantılar:

Eğer gerçekten konu ile ilgilenen, ve biraz para harcamak için hazır iseniz, size kitabı Extending and Embedding PHP (some pages are available as preview on Google Books çok) ; I've seen a couple of times that it was the kitap alabilirdik Bu konuda ilgilenen okundu (In fact, I've bought it some time ago, and it's an interesting read)

BTW, bu kitabın yazarı da ben bağlantılı ilk dört makale yazarı ;-)

Eğer sadece PHP bir C işlevi çağırmak istiyorsanız, bir arabulucu olarak Gearman kullanabilirsiniz.

http://gearman.org/

http://pecl.php.net/package/gearman (PECL paket)

Ayrıca ilginizi SWIG, the Simplified Wrapper and Interface Generator olabilir:

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of languages including common scripting languages such as Perl, PHP, Python, Tcl and Ruby.