您已上传服务器上的PHP文件。当使用浏览器,例如无法在服务器上运行简单的PHP文件
mysite.com/test.php
达到这个网址我看到PHP文件的代码(内容)和脚本似乎没有运行。
服务器是F5 BIG-IP的Apache
你能指出我出去可能是什么错误?
<?php
$url = rawurldecode($_GET['proxy_url']);
$cb = ! empty($_GET['callback']) ? $_GET['callback'] : null;
if(preg_match('#xxx\.xxx\.com/xxx/#', $url)){
$url = preg_replace('#http\://xxx\.xxx\.com/xxx/#', '', $url);
}
if(! preg_match('#^https?:#', $url)){
$url = preg_replace('#^[\.\/]+#', '', $url);
if(!file_exists($url)){
echo 'File not found';
die(0);
}
}
if(preg_match('#\.xml$#', $url)){
header('Content-type: text/xml');
}
$file = file_get_contents($url);
if($cb){
header('Content-type: application/javascript');
echo $cb.'('.$file.');';
}else{
echo $file;
}
服务器不支持PHP。 – 2013-03-01 12:21:36
你发布了什么代码?它是否以'<?php'开头? – 2013-03-01 12:21:55
查看完整的诱惑列表 - > – PeeHaa 2013-03-01 12:22:07