【发布时间】:2011-03-10 01:25:28
【问题描述】:
我有以下 php 代码:
<html>
<body>
<?php
$_GET = Array('filename' => 'scores/score.sco&scoresize=10&action=VIEW&viewtype=HTML'); // add the others here too
include('scores.php');
?>
</body>
</html>
使用此代码,我正在尝试包含此 http://apps.facebook.com/krajecr/scores.php?filename=scores/score.sco&scoresize=10&action=VIEW&viewtype=HTML
直接链接有效,但您可以在此处查看包含的结果:http://apps.facebook.com/krajecr/pokus.php - error: Warning: fclose(): supplied argument is not a valid stream resource in /3w/webz.cz/p/programming/facebook/scores.php on line 9
你能帮我解决这个问题吗?
scores.php 可以在这里找到http://www.flashkit.com/tutorials/Games/High-sco-Glen_Rho-657/index.php()
这里是前 10 行:
<?php
$winscore = (int)$winscore;
// Create a Blank File if it doesn't already exist
if (!file_exists($filename))
{
$file=fopen($filename, "w");
fclose ($file);
}
【问题讨论】:
-
'scores.php' 的内容是什么?另外请在问题中发布错误,而不是依赖可能更改/消失的外部网站。
-
是的,我们需要的远不止那个伙伴。
$file是什么?问题是这不是fclose所期望的。