无法打开文件,在目录中,我

编程入门 行业动态 更新时间:2024-10-16 22:20:31
本文介绍了无法打开文件,在目录中,我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对每个文件都有这个问题,所以我没有写完整的编码,我只写了几行,然后比我解释了错误.

i have this problem for every file so i am not writing whole coding i am writing few lines and than i am explaining the error.

1. <?php 2. include_once("C:\\Users\arif\\Desktop\\newregistration\\checkuserlog.php"); 3. ?>

警告:include_once(C:\ Users \ arif \ Desktop \ newregistration \ checkuserlog.php) 无法打开流:在第3行的/home/content/80/8261380/html/index.php中没有此类文件或目录 我包含文件名checkuserlog.php,并检查了文件路径为C:\ Users \ arif \ Desktop \ newregistration \ checkuserlog,文件类型为phpscript(.php) 我要在索引中包含的每个文件中都有此问题.因此,如果某个身体能够为我解决问题,我将能够解决其他问题, 谢谢

Warning: include_once(C:\Users\arif\Desktop\newregistration\checkuserlog.php) failed to open stream: No such file or directory in /home/content/80/8261380/html/index.php on line 3 i am including the file name checkuserlog.php and i checked it path for the file is C:\Users\arif\Desktop\newregistration\checkuserlog and the type of the file is phpscript (.php) this problem i have in every file which i am trying to include in the index. So if some body able to solve it for me i will be able to solve others, Thanks

推荐答案

首先记住\是转义字符.当您需要使用斜杠时,请使用双斜杠.即 include_once("C:\\ Users \\ arif \\ Desktop \\ newregistration \\ checkuserlog.php"); first remember \ is an escape character. when you need to use slash use double slash. i.e. include_once("C:\\Users\\arif\\Desktop\\newregistration\\checkuserlog.php");

更多推荐

无法打开文件,在目录中,我

本文发布于:2023-07-27 00:00:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219107.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法打开   文件   目录中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!