关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法

在dvwa里测试训练时,肯定会在File Inclusion这里看到The PHP function allow_url_include is not enabled这个万恶红色的报错提醒,这个提示告诉我们PHP函数allow_url_include还未启用.
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
这时我们可以在WWW里的dvwa文件里找到php.ini文件
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
点击php.ini会出现如下:
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
看到这个是不是有点蒙圈啦,这不已经是开启状态吗,我第一次也是很疑惑,还以为是dvwa出现bug了,后来我捣鼓半天,发现原来不是找dvwa的php.ini而是去找php里的.
首先我们进入PHPstudy里,通过"网站"那里,如下图:
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
点击管理,里面会有一串选项,我们就选择"php版本"查看当前自己所用的版本号

然后我们通过phpstudy文件进入Extensions,在点击php进入到如下:
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
根据自己刚才查到的PHP版本号,点击对应的PHP.nts文件

然后就进入下面:
会发现这里也有php.ini,点击它
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
出现下面:
找到allow_url_include.会发现这里是off,将其改为on,保存
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
重新回到dvwa网页,刷新一下:
关于DVWA靶场File Inclusion中出现The PHP function allow_url_include is not enabled解决办法
万恶的红色提醒消失啦.我们可以继续愉快的玩耍啦…

以上便是我最近遇到dvwa问题解决的方法,如果也有朋友遇到,可以参考一下.安全小白努力学习中…