php include甚至在同一个文件夹中也不起作用 [英] php include doesn't work even inside the same folder
本文介绍了php include甚至在同一个文件夹中也不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
reg.php在成员
文件夹
reg.php is in members
folder
<?php include "members/reg.php";?> // doesn't work
<?php include ("members/reg.php");?> // doesn't work
然后我更换 reg.php
与当前文件位于同一文件夹中
Then I replace reg.php
in the same folder as the current file
<?php include "reg.php";?> //doesn't work.
推荐答案
试试这个
ini_set( 'error_reporting', E_ALL );
ini_set( 'display_errors', true );
include './members/reg.php';
可能包含有效但导致了沉默错误。
Possibly the include worked but caused a silenced error.
这篇关于php include甚至在同一个文件夹中也不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文