Home >Backend Development >PHP Tutorial >Processing simulated rewrite effect in php_PHP tutorial

Processing simulated rewrite effect in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:58:57690browse

php中处理模拟rewrite 效果
$Php2Html_FileUrl = $_SERVER["REQUEST_URI"];
$Php2Html_UrlString = str_replace("/", "", strrchr($Php2Html_FileUrl, "/"));
?>
    if (!intval($sid)){
        $sid=intval($_GET['id']);
        if(!intval($sid)){
            $sid=310;
            }
        }
    ?> 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/317469.htmlTechArticlephp中处理模拟rewrite 效果 ?php $Php2Html_FileUrl=$_SERVER["REQUEST_URI"]; $Php2Html_UrlString=str_replace("/","",strrchr($Php2Html_FileUrl,"/")); ? ?php$sid=intval(intval($Ph...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn