电脑安全

您当前的位置:主页 > 电脑安全 >

php扩展-网络编程

来源:[db:来源]标题:   源码    编辑:电脑技术全能网 时间:2019-09-22 12:31

原标题:php扩展-网络编程
   版权申明:原创作品,同意转载,转载时请务必以超链接情势表明文章原始出书、作者信息和本申明。不然将查究执法义务。http://blog.111cn.net/mayongzhan - 马永占,myz,mayongzhanphp扩大分为两种.一种是php的扩大,一种是zend扩大.(传奇中的,这是programing php里讲的).真的盼望能有人宣布一些对于zend扩大的货色.这才是真正的中心.原来是要读下源码的.然而仿佛php的源码许多.现在只能扫扫边边角角.假如无机会的话,会去读一下源码的.实在扩大并不是很难,php曾经给好了例子和扩大的东西.应用一下便可以了.先下php源码,解压而后到解压名目,ext下 履行./ext_stel --extname=myz而后到解压名目,履行./buildconf --force./configure --with-myz=shared --其余的makemake install而后就能看到phpinfo()外面多了个myz了.这里编译了好几回.仿佛每次都有新成绩.多调试几回必定会胜利的."妻儿"不舍附:php源码包中两个主要的文件内容README.EXT_SKELREADME.SELF-CONTAINED-EXTENSIONSREADME.EXT_SKEL(NOTE: you may also want to take a look at the pear package PECL_Gen, a PHP-only alternative for this script that supports way more extension writing tasks and is supposed to replace ext_skel completely in the long run ...)WHAT IT IS It''s a tool for automatically creating the basic framework for a PHP module and writing C code handling arguments passed to your functions from a simple configuration file. See an example at the end of this file.HOW TO USE IT Very simple. First, change to the ext/ directory of the PHP 4 sources. If you just need the basic framework and will be writing all the code in your functions yourself, you can now do ./ext_skel --extname=module_name and everything you need is placed in directory module_name. [ Note that GNU awk is likely required for this script to work. Debian systems seem to default to using mawk, so you may need to change the #! line in skeleton/create_stubs and the cat $proto | awk line in ext_skel to use gawk explicitly. ] If you don''t need to test the existence of any external header files, libraries or functions in them, the module is already almost ready to be compiled in PH<

上一篇:php制作留言板二[源码]-网络编程

下一篇:没有了