鲁鲁槟 2016-07-09 10:06:04 2143次浏览 0条回复 0 0 0

作者:鲁鲁槟 出处:http://www.luluqi.cn/post/default/show-post?id=95 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。​

一、.html和.htm的区别

1、若网站有index.html和index.htm,默认优先访问.html

2、.htm是为了 兼容以前的doc系统8.3的命名规范

二、php如何关闭notice级别的提示

方法1、在php.ini文件中改动 error_repoting = E_ALL & ~E_NOTICE

方法2、在你想禁止notice错误的页面中加入以下代码:error_reporting (E_ALL^E_NOTICE); 方法3、用@在出现错误的代码处添加

三、创始人

1、html设计值:蒂姆· 伯纳斯

2、php(Hypertext Preprocessor超文本预处理语言)之父:Rasmus Lerdorf

四、配置Apache虚拟目录

1、需求:apache安装在C盘,但是C盘没有空间了,想把D盘下的一个文件夹下的index.php当做网站管理

2、配 置

(1)添加虚拟目录节点

DirectoryIndex index.html index.php index.htm l.php #站点别名 Alias /myblog "D:/myblog" #表示对D盘下面的myblog文件权限设置 #这是访问权限设置 Order allow,deny #表示先允许所有的ip访问,后拒绝所有 Allow from all #允许所有ip

(2)注销document路径 DocumentRoot "D:\Program Files\phpStudy\WWW" (3)测试 : http://localhost/luluyii/index.php

五、Apache配置虚拟主 机

1、思考:目前我们是http://localhsot/luluyii/,需求:http://www.luluyii.cn

2、配置虚拟主机步骤:

(1 )启用httpd-vhosts.conf ,即在httpd.conf去掉 Include conf/extra/httpd-vhost.conf前面的#号

(2)在httpd- vhosts.conf文件中配置

<VirtualHost *:80>    
DocumentRoot "D:\myblog"    
ServerName www.luluyii.cn    
ServerAlias   
<Directory "D:\luluyii\index.php">      
    Options FollowSymLinks ExecCGI      
    AllowOverride All      
    Order allow,deny      
    Allow from all      
    Require all granted  
</Directory>
</VirtualHost>

(3)修改hosts文件 —— 路径C:\Windows\System32\drivers\etc

127.0.0.1 www.luluyii.cn

(4)测试 www.luluyii.cn

注:采用phpstudy集成安装包可简单配置

六、php/jsp/asp.net访问网页时序图

    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册