早教吧 育儿知识 作业答案 考试题库 百科 知识分享

Warning:include(\connect.php)[function.include]:failedtoopenstream:NosuchfileordirectoryinG:\www\register.phponline2Warning:include()[function.include]:Failedopening'\connect.php'forinclusion(includepath='.;C:\php5\pear')inG:\ww

题目详情
Warning:include(\connect.php) [function.include]:failed to open stream:No such file or directory in G:\www\register.php on line 2Warning:include() [function.include]:Failed opening '\connect.php' for inclusion (include_path='.;C:\php5\pear') in G:\www\register.php on line 2 谁能告诉我上面的怎么解决啊
▼优质解答
答案和解析
应该是php吧
应该是connect.php不在当前工作目录也不在php.ini里设置的include目录C:\php5\pear中
include即可以是绝对路径,也可以是相对路径,确保文件存在,并正确书写路径即可