看板 PHP 關於我們 聯絡資訊
一個我繼承下來的公佈欄程式 最近出現了以下的錯誤訊息 Warning: fopen() [function.fopen]: Filename cannot be empty in /public_html/new_web/bulletin/index.php on line 48 我平常也是簡單的新增公告 就突然跑出這訊息 以下是line 48 開始的php code (需要完整請告知) if ($fp = fopen($file, "r")) { while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); 有沒有大大能告訴我該如何著手解決呢 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.56.240
bibo9901:他就是跟你說,$file=="" 09/04 16:29
EVA03:嗯嗯.是找不到檔案嗎? 可以麻煩講清楚點嗎 感謝 09/04 16:34
EVA03:我剛才看了一下 $file = $_POST['rss']; 怎麼扯到rss xd 09/04 16:36
LPH66:那就去看送來的那一頁有沒有 rss 這個欄位 09/04 18:59