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);
発生する問題は、エコーするには長すぎることです。