更新要由该页面解析的xml文件后刷新php页面

时间:2014-09-15 10:14:27

标签: php xml refresh simplexml reload

我发现在加载更新的XML文件时,PHP页面中使用SimpleXML解析的内容不会刷新。

$xmlnewsm = simplexml_load_file('../xml/newsm.xml');

在PC上手动刷新页面有效,它在我的手机(HTC One M7 / Chrome for Android)上提供了更新内容,但它无法正常工作。

我在页面内尝试了header("refresh: tempo;");$_SERVER['PHP_SELF'],但他们没有工作。

0 个答案:

没有答案