Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 pastebin.com 上有一个文本。 我想通过原始获取它,所以我在 PHP 中使用此代码:
$file = file_get_contents('http://pastebin.com/raw.php?i=1E9hZLfc'); echo $file
但它什么也没返回,我也试过 curl 但同样的问题。 你能帮助我吗 ?
如果你是var_dump你的数据,你可以看到它是一个长度很大的字符串。如果你需要eval代码,你可以试试这个:
var_dump
eval
$url = "http://pastebin.com/raw.php?i=1E9hZLfc"; $data = file_get_contents($url); eval('?>'.$data);
出现的问题是回显时间太长了。