Home  >  Article  >  php教程  >  php中处理模拟rewrite 效果

php中处理模拟rewrite 效果

WBOY
WBOYOriginal
2016-06-13 12:34:58773browse

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;
            }
        }
    ?> 

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