想用PATH_INFO功能。但是不知道应该加到哪里?解决办法

WBOY
發布: 2016-06-13 13:34:57
原創
723 人瀏覽過

想用PATH_INFO功能。但是不知道应该加到哪里?
这是一个查看网页源代码的功能
网址是这样的
www.vipcha.net/5/
我想实现的功能是这样的
www.vipcha.net/5/www.baidu.com //在原来的基础上增加一个网址。


代码如下: 请高手指点一下。谢谢

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><?php $hu = 'yuan';
@require_once('global.php');
$domain = $_POST['domain'];
if($domain){
    is_domain($domain) or exit( "<script language=javascript>alert('请输入正确的域名!');location.href='index.php';");
    $content = @file_get_contents("http://".$domain);
    @require_once('cache.php');
    if(file_exists("cache/cache.php")){
        @require_once("cache/cache.php");
        $urls = filehave($urls,$domain);
    }else{
        $urls = fileno($domain);
    }
    writeover("cache/cache.php","<?php \r\n\$urls=".vvar_export($urls).";\r\n?>");
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>缃</title>
登入後複製
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!