<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
我使用这个文件。公司对我的PHP页面链接到MySQL但我的浏览器说以下消息:没有这样的文件目录吗?
Warning: require_once(../FinalApplicationDWP/Public_html/dbstuff.inc): failed to open stream: No such file or directory in /home/cs12jkk/public_html/functions.inc on line 6
和
Fatal error: require_once(): Failed opening required '../FinalApplicationDWP/Public_html/dbstuff.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cs12jkk/public_html/functions.inc on line 6
我filies在保存上文件在我的桌面上FinalApplicationDWP> public_html>然后所有文件
<?php
require_once ("..dbstuff.inc");
require_once ("validation.inc");
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
改变
<"..dbstuff.inc">
文件的正确的道路只是去尝试,仍然得到同样的错误消息,感谢尝试虽然:) – user3192530尝试一个完全合格的路径,而不是相对一个 – FaddishWorm