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.
相关文档:
学过C的人用php的时候一般会相当顺手,而且感到php太方便太轻松。但在变量作用域这方面却与
c有不同的地方,搞不好会相当郁闷,就找不到错误所在。昨晚就与到这么一个问题,是全局变量在函数中的问题。今天搜索了一下,发现一篇相当不错的文章,讲了php中的变量作用域。是一位网友翻译的 在这贴一下:
变量范围
变量的范 ......
我们把下载的三个软件包放到/var/local目录下(这是笔者个人的习惯),它们都是tar.gz包,可以用命令tar -xzpvf 包名,把它们在当前目录(/var/local/)中解开:
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
解包后可以开始进入正式安装。 ......
PHP中的MYSQL常用函数总结
1、mysql_connect()-建立数据库连接
格式:
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
例:
$conn = @mysql_connect("localhost", "username", "password") or dir( ......
原帖地址:http://www.phpma.com/english/20071215/640.html
Description
array explode
( string separator, string string [, int limit])phpma.com
Returns an array of strings, each of which is a substring of string
formed by splitting it on boundaries formed by the string separator
. If limit
is ......
测试:http://www.yincode.com
用户:test1 test2 test3
密码:123456
=======================================
2010/01/12/18:54:24
=======================================
谷歌浏览器浏览不正常
main.js
function getData(u,m,callBack){
var ru=u+"&r="+Math.random();
$(" ......