作者EVA03 (初号机,贰号机都被人用了)
看板PHP
标题[请益] fopen的问题
时间Sat Sep 4 16:28:09 2010
一个我继承下来的公布栏程式
最近出现了以下的错误讯息
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
1F:推 bibo9901:他就是跟你说,$file=="" 09/04 16:29
2F:→ EVA03:嗯嗯.是找不到档案吗? 可以麻烦讲清楚点吗 感谢 09/04 16:34
3F:→ EVA03:我刚才看了一下 $file = $_POST['rss']; 怎麽扯到rss xd 09/04 16:36
4F:推 LPH66:那就去看送来的那一页有没有 rss 这个栏位 09/04 18:59