易截截图软件、单文件、免安装、纯绿色、仅160KB

安装php支持mssql,curl,gd库等

先安装的zlib ./configure --prefix=/usr/local/zlib 然后装的curl ./configure --prefix=/usr/local/curl --with-zlib=/usr/local/zlib 安装gd默认安装 ./configure --prefix=/usr/local/gd --with-zlib=/usr/local/zlib (有些前面先安装jepg,png...with就可以了,之后php的时候看./configure --help里面有具体的) 安装freetds支持mssql ./configure --prefix=/usr/local/freetds \
--with-tdsver=8.0 \
--enable-msdblib \
--enable-dbmfix \
--with-gnu-ld \
--enable-shared \
--enable-static 安装libmcrypt 支持mcrypt ./configure --prefix=/usr/local/freetds \ --disable-posix-threads 默认mysql和apache都是安装好的 如下配置 ./configure --prefix=/usr/www/php \
--with-apxs2=/usr/www/apache/bin/apxs  \
--with-config-file-scan-dir=/etc/ \
--with-zlib=/usr/local/zlib \
--enable-bcmath \
--with-bz2 \
--with-curl=/usr/local/curl \
--enable-dbase \
--enable-exif \
--enable-ftp \
--with-pdo-dblib=/usr/local/freetds \
--with-pdo-mysql=/usr/www/mysql \
--with-gd=/usr/local/gd \
--enable-mbstring=cn \
--enable-calendar \
--enable-bcmath \
--with-libmbfl \
--with-mcrypt=/usr/local/libmcrypt \
-with-mssql=/usr/local/freetds \
-with-mysql=/usr/www/mysql/ \
--with-mysqli=/usr/www/mysql/bin/mysql_config \
--enable-embedded-mysqli=share \
--enable-soap \
--enable-sockets \
--with-xmlrpc \
--with-pear=/usr/www/php/PEAR\
--enable-zip $make $make install 之后是配置文件cp php.ini-dist /etc/php.ini#因为我在前面的编译里设置了在/etc中加载php.ini 修改apache的httpd.conf确保有以下一行,一般默认是有的 LoadModule php5_module modules/libphp5.so 添加如下,使apache能够解释.php结尾的文件 SetHandler application/x-httpd-php 这时候启动apache应该可以了支持php了 有必要设置虚拟主机需要打开加载vhost的注释 然后编辑apache/conf/extrahttpd-vhosts.conf 添加域名支持,这里不再赘述,


相关文档:

PHP手册翻译日记 [6] 若干结构改变

国庆长假将至,真是开心。这两天有点小空,翻译了手册中的一些内容,算是给PHPer们的一个小礼物。
本来想把所有PHP5.3的新内容给更新了,但发现手册有很大的改动,尤其是一些目录结构上的发动。必须先跟上这些改动,否则编译会出错,更谈不上进一步的翻译。
这两天主要做了以下工作:
1. 将翻译平台迁移到SVN
PHP官方的 ......

php大文件的上传

1.使用PHP的创始人 Rasmus Lerdorf 写的APC扩展模块来实现(http://pecl.php.net/package/apc)
APC实现方法:
安装APC,参照官方文档安装,可以使用PECL模块安装方法快速简捷,这里不说明
配置php.ini,设置参数 apc.rfc1867=1 ,使APC支持上传进度条功能,在APC源码说明文档里面有说明
代码范例:
复制PHP内容到剪 ......

PHP5面向对象:Object Cloning

PHP4:
<?
$sample1 = new StdClass();
$sample1->name = "Hasin";
$sample2 = $sample1;
$sample2->name = "Afif";
echo $sample1->name;
?>
In PHP4 it works differently; it will output Hasin, as both are different from 
each other.
PHP5:
<?
$sample1 = new StdClass();
$ ......

PHP程序61条面向对象分析设计的经验原则 (转)

 
你不必严格遵守这些原则,违背它们也不会被处以宗教刑罚。但你应当把这些原则看成警铃,若违背了其中的一条,那么警铃就会响起 。 ----- Arthur J.Riel
 
(1)所有数据都应该隐藏在所在的类的内部。
 
(2)类的使用者必须依赖类的共有接口,但类不能依赖它的使用者。
 
(3)尽量减少类的协议中的 ......

使用Flex和PHP创建自己的视频应用


来源:蓝色理想 作者:Dreamer 2007年10月16日 14:50 网友评论:0条 点击:
2737
Dreamer的Blog:www.zhuoqun.net/
英文原文:Creating MyTube with Flex and PHP
原文地址:
http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html
原文作者:Jack Herrington
随着宽带的普及、 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号