0

我在用:

$myFile = SITE_URL.'/abc.html'; 
$template_msg = file_get_contents($myFile);

此代码适用于我的本地计算机,但不适用于实时站点。它给了我一个 500 页未找到的错误。

4

1 回答 1

0

使用这种类型的路径。

回声$我的文件;并检查它是否像' http://www.example.com/abc.html '这种类型的路径然后它工作。

$myFile = SITE_URL.'/abc.html'; 
$template_msg = file_get_contents($myFile);

希望对您有所帮助。

于 2013-04-15T08:19:20.643 回答