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

将 Apache 及 PHP 的版本隐藏

导读:  
 Apache:  
 开启 httpd.conf,加入以下两行:  
 QUOTE:  
 ServerTokens ProductOnly  
 ServerSignature Off  
 PHP:  
 隐藏 PHP 版本就是隐藏 "X-Powered-By: PHP/5.1.2-1+b1" 这个,开启 php.ini,加入:  
 QUOTE:  
 expose_php = Off  
 Apache 禁止目录浏览:  
 禁止目录浏览  
 打开文件:httpd.conf  
 查找并定位到下面这行:  
 QUOTE:
 Options Indexes FollowSymLinks  
 去掉这一行的 Indexes 即可,
 完成以上两个设定后,重新启动 Apache 即可。


相关文档:

PHP实现首页自动选择语言转跳

http://www.111cn.net/phper/19/dd73e6624c92e49e7755d3b43719677d.htm
很多网站在首页上做一些链接,让用户来选择将要访问的各自的语言页面,让中国人选择“中文”,韩国人选择“朝鲜语”,等等。那么能不能做程序来自动帮助选择呢?
答案是肯定的,大家都在用google,你用中文系统打开google的首页 ......

我的php的学习

<?
class upload{
private $name;                 //$_FILES['file'][name]
private $type;                 //$_FILES['file'][type]
privat ......

如何在PHP中创建数组

原文链接:http://www.phpdo.net/index.php/20100409/54.html
如何在PHP中创建数组呢?
在PHP中使用array函数来创建一个数组,它允许一定数量用逗号key=>value参数。Key可以是integer或者string类型,value可以是任何值。
例如:
 <?php
 $array = array(“php1″=>”phpdo”, ......

php Mod rewrite test

In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on ......

[转]用PHP的ob_start();控制您的浏览器cache!


Output Control
函数可以让你自由控制脚本中数据的输出。它非常地有用,特别是对于:当你想在数据已经输出后,再输出文件头的情况。输出控制函数不对使用
header()

setcookie(),
发送的文件头信息产生影响
,
只对那些类似于
echo()

PHP
代码的数据块有作用。
我们先举一个简单的例子,让大家对 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号