<!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