php - 无法打开流没有此类文件或目录

标签 php compiler-errors

我使用的是人们告诉我的新代码。我只是想不通为什么不访问PHP。好的,php存储在其他服务器上,文件夹结构为-public/work/return.php。

到目前为止,我已经将代码设置为

  <?php
  include_once("pdo_mysql.php"); 
  pdo_connect("***", "***", "***");
  pdo_select_db("***");

但我不断得到的错误
include_once(pdo_mysql.php): failed to open stream: No such file or directory

最佳答案

现在,您必须使用$ _SERVER ['DOCUMENT_ROOT']访问文件路径

关于php - 无法打开流没有此类文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20901500/

相关文章:

php - 将博客添加到现有 codeigniter 网站的选项有哪些

php - 如何更改 Yii2 中 Controller 的默认 View ?

php - 如何使用sql中的两个表数据进行管理登录?

c++ - 随机 : no such file or directory

c++ - 什么时候允许折叠表达式作为模板参数?

c++ - 错误 LNK1561 : entry point must be defined- main() exists

php - 带有单词列表和链接的 MYSQL 和 PHP 搜索脚本

php - 419 表单发布请求中的未知状态

java - 找不到符号 - 方法(通用方法)

android - Logcat和项目未显示任何错误