我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

没有需要PHP的结果

I have file structure like so:

root  
-folderA/file1  
--folderB/file2  
---folderC/file3  
----folderD/file4 

In file2, I use require('../file1') and it works fine. However, in file4, I use require('../../../file1') and there is no output.

I have checked the path to make sure file_exists and is_readable. I used:

try{ }catch(exception){ }

with no results.

I then copy-pasted my source code in file2 (knowing that it works) into file4, changing only the relative path. No output again.

Any help is appreciated. Thanks.

近期文章

  • 使用Directory迭代器函数,我会得到不同的结果,具体取决于路径名和其他内容?
  • 在Yii中提交表单之前的模态用户信息
  • mysqli_connect文件供重用
  • PHP搜索/过滤文本文件
  • 导出CSV文件有许多空行
  • 在Laravel中加载json文件以进行数据库配置
  • PHP为SQL添加唯一ID
  • mod_rewrite不工作 - 导致404错误,没有日志
  • .htaccess - 如何添加http:// www。 在多种条件下
  • php用用户和密码获取facebook信息
  • 如何使用http java客户端从数据库中删除文件
  • 类的PHP错误对象无法转换为字符串
  • 从另一个php文件调用的PHP libchart部分工作
  • 匹配以逗号分隔的主题来自两个不同的表
  • 在上一页链接和新页面之间连接产品ID
  • 从Template和excel文件自动生成多个PHP文件
  • setTimeout只在循环中运行一次
  • 布尔字段与单独的表
  • 使用Sessions / SQL进行简单登录
  • 为什么不在iframe中使用preg_replace?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华