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

PHP安装问题:编译安装php5.2.0时出错解决方案

编译安装php5.2.0时出错解决方案
1.错误信息...................如下
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for mysql support... yes
checking for specified location of the MySQL UNIX socket... /tmp/mysql.sock
checking for MySQL UNIX socket location... /tmp/mysql.sock
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
2.解决方法:
如果是自己选择GZ包安装的MYSQL。这里要加路径。
加的方法为--with-mysql-dir=/user/local/mysql
切记不可写为:--with-mysql=/user/local/mysql
a、checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
缺少flex-2.5.4a-29.i386.rpm,从Linux 9.0光盘中找到flex-2.5.4a-29.i386.rpm,安装,重新编译php,ok.


相关文档:

php soap初识

打开php.ini的soap扩展
server.php
<?php
class math{

/**
* 加法
*
* @param integer $a
* @param integer $b
* @return integer
*
*/
public function add($a, $b){

return $a + $b;
}
}
$server = new SoapServer('http://localhost/math.wsdl',array('soap_version' =& ......

采用PHP实现”服务器推”技术的聊天室

    * 作者: laruence(http://www.laruence.com)
    * 本文地址: http://www.laruence.com/2008/04/16/118.html
    * 转载请注明出处
传统的B/S结构的应用程序,都是采用”客户端拉”结束来实现客户端和服务器端的数据交换。
本文将通过结合Ticks(可以参看我 ......

优化PHP代码的40条建议


1.如果一个方法可静态化,就对它做静态声明。速率可提升至4倍。
2.echo 比 print 快。
3.使用echo的多重参数(译注:指用逗号而不是句点)代替字符串连接。
4.在执行for循环之前确定最大循环数,不要每循环一次都计算最大值。
5.注销那些不用的变量尤其是大数组,以便释放内存。
6.尽量避免使用__get,__set,__auto ......

PHP配置MYSQL

这两天在捣鼓PHP,去ecshop和phpwind下载了一个商城和一个论坛。两个都需要安装mysql的服务器,于是我按照教程进行安装。结果发现每次都是到连接数据库的地方就变成空白页了。死活找不出来问题。后来在余建的指导下,发现原来是PHP的版本过高。真是郁闷。
现在我把我最近配置的过程写出来。
所需软件:
apache_2.2.14-wi ......

flash + php 文件上传

 import flash.net.FileFilter;
import flash.net.FileReferenceList;
import fl.controls.Button;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.HTTPStatusEvent;
import flash.display.Loader;
import flash.net.URLRequest;
var ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号