Freshly Pressed: 443 Posts, 384 Comments and 1,799,096 Views on Zhaoke Blog.

压缩php构建的网站: 部署和测试

本文主要介绍如何在php网页中使用ob_start()和ob_gzhandler()函数压缩网页, 并测试压缩效果.

1. 准备

首先查看php是否支持zlib module, 检查phpinfo()信息或者拷贝下面代码到info.php中:

[code]
phpinfo();
?>
[/code]

然后把info.php上传到您的web服务器上, 打开您的浏览器, 访问info.php网页, 查看zlib部分. 如果zlib已安装, 如下图所示:
Read More »

Keyword: , , ,

  linux

  1 Comment

  Permanent Link

  4,195 Views

使用PHP脚本修改Linux或Unix系统口令

本文介绍如何使用PHP脚本修改Linux或Unix系统口令

需要的工具和安装:

你必须安装下面的工具和软件:
– 修改口令的Shell脚本
– Sudo 访问权
– Apache or Lighttpd web 服务器
– PHP服务端程序

Read More »

Keyword: , , ,

  linux

  3 Comments

  Permanent Link

  6,939 Views