0
好的,所以这个网页做的事情不同。它使用文本文件并在JavaScript中加载数据,然后用JavaScript显示它。我尝试使用PHP方法,但我无法得到它。从网页获取JavaScript数据数组
如何获得S
阵列玩家hiscores从http://queville.com/cgi-bin/forums/index.cgi?a=scores&b=Overall
一样,如果您查看源代码,你会看到这个<script>
</script>
标签之间:
S[na]="|Daminion|442776|30436|125645|90728|40835|79058|16318|15927|43700|129|0|"; na++;
S[na]="|superfly|442490|32398|32032|161903|93689|75086|20018|11020|15937|407|0|"; na++;
S[na]="|GodessCrystal|435702|46422|41721|95881|43717|105026|23324|23500|30296|25815|0|"; na++;
S[na]="|grandkool|432065|110849|34644|12438|7706|165145|60924|12436|23446|4477|87|"; na++;
我已经尝试使用PHP的file_get_contents
等,但它不工作...
你明白了什么,当你使用'file_get_contents'(与 “象”)? – Koterpillar
我得到空白的结果...自己尝试。 > _ < – nn2