<?php
$currtime=time();
$currtimestr=strftime ("%H:%M:%S ",$currtime);
echo "The time is : ".$currtimestr;
print (strftime("%A"));
?>
在PHP5中,不能和PHP4一样使用date() , time() 等时间函数正确地取得本地时间, 不同的代码在不同的OS里会产生不同的结果。解决办法,为PHP5设置统一的时区:
编辑 “php.ini”,找到以下行修改:
date.timezone = PRC //PRC代表中华人民共和国
目录:PHP
因为最小化安装的PHP,很多扩展没有启用,在登陆phpMyAdmin时得到一个警告:
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
我发现 http://www.php.net/mbstring 上有介绍说:
mbstring provides multibyte specific string functions that help you deal with multibyte encodings in PHP.
Note: If you are connecting to [...]
目录:PHP
标签: phpMyAdmin
注:除了phpMyAdmin,以下均为二进制的安装文件。
安装 apache_2.2.6-win32-x86-openssl-0.98e
Server information: 填入域名,服务器名,管理员信箱。
默认:for All users,on Port 80,as a service,即可。
选择Custem定制安装。为方便起见,更改安装目录到 “C:\Apache2.2\”。(理由是:某些配置文件对含空格的目录名比较敏感,这样能减少出错。)
目录:PHP
标签: Windows