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

Processing simulated rewrite effect in php_PHP tutorial

WBOY
Release: 2016-07-21 15:58:57
Original
689 people have browsed it

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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template