无法打开文件,在目录中,我 [英] failed to open file, in the directory, i

查看:93
本文介绍了无法打开文件,在目录中,我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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");


这篇关于无法打开文件,在目录中,我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆