摘要: 开发环境:ubuntu 11(虚拟机环境) 开发平台: php-5.2.16.tar+apache2.0PHP API 20041225PHP Extension 20060613Zend Extension 220060519说明一下为什么要用这么旧的版本,没原因,因为公司官方服务器是用这个版本...之前用php5.3.10稳定版本已经做过一次,可是移植到php5.2.16上却用不了。发现原因应该是PHP与ZEND API不同!所以开发扩展时版本一定要一致啊! 一致的意思是:都是PHP5.2.X 或 PHP5.3.X 等等...一:安装开发环境 如果用ubuntu自身的apt-get ... 阅读全文
posted @ 2012-04-27 20:18 ifeixiang 阅读(819) 评论(0) 推荐(0) 编辑
摘要: google到了这里http://stackoverflow.com/questions/7271792/php-warning-php-startup-unable-to-load-dynamic-library-home-lib-so-so-undef终于解决了!!!问题是:能编译模块生成so,但php不能加载PHP Startup: Unable to load dynamic librar... 阅读全文
posted @ 2012-04-27 19:35 ifeixiang 阅读(763) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com/reference/clibrary/cstring/strtok/ 看一下strtok()函数就会懂了...另外还有更好用的 istringstream#include#include#include #include using namespace std ; void getValues(const char* source){ int va... 阅读全文
posted @ 2012-04-27 19:06 ifeixiang 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 最烦的还是安装环境啊!为了解决php api不匹配的问题,我又重新安装了另一台ubuntu服务器,并google到php5.2.16版本的源代码(十分艰苦啊!)于是开始编译安装:我是参考这位仁兄写的来做的,写的不错:http://wangyan.org/blog/install-php-from-source.html详细自己看...其中遇到的问题是 1,phpize 后,./configure ... 阅读全文
posted @ 2012-04-27 19:04 ifeixiang 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 昨天在两台linux服务器上测试了一下,挺好...但放到公司的服务器上发现连服务器都崩溃了!apache都启动不了!研究了一下:发现原因极有可能是:我测试的两台linux系统都是PHP5.3.XPHP API 20090626PHP Extension 20090626 而服务器的:PHP5.2.16,网管本机测试的: 5.2.8 PHP API 20041225 PHP Extensio... 阅读全文
posted @ 2012-04-27 09:33 ifeixiang 阅读(179) 评论(0) 推荐(0) 编辑