【发布时间】:2014-08-01 21:23:35
【问题描述】:
我在 pastebin.com 上有一条短信。
我想通过原始获取它,所以我在 PHP 中使用此代码:
$file = file_get_contents('http://pastebin.com/raw.php?i=1E9hZLfc');
echo $file
但它什么也没返回,我也试过 curl 但同样的问题。
你能帮帮我吗?
【问题讨论】:
-
完全没有错误?甚至在错误日志中都没有?
-
如果我把
http://pastebin.com/raw.php?i=1E9hZLfc放在我的浏览器上,我只会得到很多 base64 块 -
我正在处理 wamp 没有错误!
-
$file = file_get_contents('pastebin.com/raw.php?i=1E9hZLfc'); $file = ((substr($file,6))); $file = substr($file,0,strlen($file)-2);评估($文件);