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

php、MySql运行环境

这里介绍一个集成环境 XAMPP。
XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,解压缩,启动即可。
下载地址:
http://www.apachefriends.org/zh_cn/xampp.html
到目前为止,XAMPP 共有以下四种版本:
(1)适用于 Linux 的 XAMPP
(2)适用于 Windows 的 XAMPP
(3)适用于 Mac OS X 的 XAMPP
(4)适用于 Solaris 的 XAMPP
您只需下载并解压 XAMPP 就能完成安装,且对 Windows 的注册表不做任何改动(但使用 XAMPP 的 Windows 安装包时除外). 您也无需编辑任何配置文件。没有更简单的方法了吧!
软件包中包含了一些范例程序可供检测 XAMPP 是否正在运行:一个小型 CD 收集程序(基于 PHP 和 MySQL)、一个小型留言本程序(用 Perl 写成)和另外几个示例工具。
如果您觉得不再需要 XAMPP 了,只需直接将其目录删除,就完成卸载了。
如果您使用 XAMPP 的 Windows 安装包, 建议您调用系统的“添加或删除程序”功能执行卸载。 这是因为每种安装文件在执行安装过程时都会在注册表中留下痕迹,XAMPP 的安装包也不例外。


相关文档:

11 advanced MySQL questions

 

Explain MySQL architecture
. - The front layer
takes care of network connections and security authentications, the
middle layer does the SQL query parsing, and then the query is handled
off to the storage engine. A storage engine could be either a default
one supp ......

.\mysql\user is marked as crashed 解决办法

 
I found a solution to anyone else who may be having this problem.
First start mysql using skip grant tables
root@ns1 [/var/lib/mysql/mysql]# service mysql start --skip-grant-tables
Starting MySQL [ OK ]
now with mysql started, you can repair the mysql/user table
root@ns1 [/var/lib/mysql ......

mysql默认是只能从localhost访问

 所以除了给账户权限以外 还有修改 /etc/mysql/my.cnf
找到 bind-address = 127.0.0.1 修改为 bind-address = 0.0.0.0
重启mysql : sudo /etc/init.d/mysql restart
否则会报 ERROR 2003 (HY000): Can't connect to MySQL server on 'x.x.x.x' (111)
好吧 我是mysql菜鸟 以前都是走localhost的
......

java和php数字处理上

java使用Math类,php使用系统函数
ceil功能 大于等于某数(常用于分页页数计算)
php中:ceil(a/b)
java中:(int)Math.ceil((double)a/b))    Math.ceil在java中需要传入double型,而返回也是double型。注意这里用(double)a/b才可以。
a/b,(dobule)(a/b)都不行。因为他们会先自动舍弃小数取得整数
flooe ......

PHP中单引号与双引号的区别

 
一、引号定义字符串
  在PHP中,通常一个字符串被定义在一对引号中,如:
'I am a
string in single quotes'
"I am a string in double
quotes"
  PHP语法分析器是用成对的引号来判断一个字符串的。因此,所有字符串必须使用同一种单或者双
引号来定义开始和结束。例如,下面的字串定义是不 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号