【发布时间】:2014-10-17 13:15:18
【问题描述】:
我有简单的 PHP 脚本:
<?php
$url = $_REQUEST['url'];
if (preg_match('/\b(https?|ftp):\/\/*/', $url) !== 1) die;
echo (file_get_contents($url));
?>
我正在尝试回显页面:
http://forum.bodybuilding.com/showthread.php?t=162984431&page=10
但回声显示:
http://forum.bodybuilding.com/showthread.php?t=162984431
示例:
我不是 PHP 专家,但我认为这与持久 URL 有关吗?我将如何解决这个问题,以便回显在 & 符号之后显示所有内容?如果有帮助,我确实在我的服务器上安装了 cURL。谢谢!
【问题讨论】:
标签: php curl proxy request echo