摘要:
原文地址:http://www.php.cn/code/3966.html fenlei.php 效果图: 阅读全文
posted @ 2017-08-13 20:11
yolo_bean
阅读(130)
评论(0)
推荐(0)
摘要:
http://www.wanysys.cc/coding/php/800.html 今天在做本地PHP项目的时候,想把之前wampserver的本地虚拟服务器环境访问方式改为本地localhost访问方式,打开wampserver的Apache中的http://localhost/显示如下错误,提示 阅读全文
posted @ 2017-08-13 08:44
yolo_bean
阅读(6920)
评论(0)
推荐(0)
摘要:
1、Win键+R 输入:services.msc 进入服务,找到wamp,看哪个服务没有启动 2、手动启动apache服务失败,弹出以下错误 3、然后在cmd命令行中切换到你的apache的bin目录下,执行httpd.exe,看有什么提示 4、打开httpd.conf,找到错误提示的这一行 问题很 阅读全文
posted @ 2017-08-13 08:38
yolo_bean
阅读(373)
评论(0)
推荐(0)
摘要:
我的apache版本:Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 80 httpd.conf文件中: Require all denied (对应2.2的Deny from all) Require all granted (对 阅读全文
posted @ 2017-08-13 07:47
yolo_bean
阅读(278)
评论(0)
推荐(0)
摘要:
错误信息:$this引用没有上下文 原因:在PHP5中,static声明的静态方法里不可以使用$this 需要使用self来引用当前类中的方法或是变量。 引用的方法里不可以带$this(示例代码中为getres()方法) 示例代码如下: 阅读全文
posted @ 2017-08-13 02:38
yolo_bean
阅读(330)
评论(0)
推荐(0)
摘要:
ini_set()具有更改PHP.ini设置的功能。此函数接收两个参数:需要调整的配置变量名,以及变量的新值。 // 是否开启调试模式define('DEBUG',true);if(DEBUG){ ini_set('display_errors','on'); }else{ ini_set('dis 阅读全文
posted @ 2017-08-13 00:10
yolo_bean
阅读(304)
评论(0)
推荐(0)