标签: 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'],但他们没有工作。
header("refresh: tempo;");
$_SERVER['PHP_SELF']