php中处理模拟rewrite 效果
<?php
$Php2Html_FileUrl = $_SERVER["REQUEST_URI"];
$Php2Html_UrlString = str_replace("/", "", strrchr($Php2Html_FileUrl, "/"));
?>
<?php $sid=intval(intval($Php2Html_UrlString));//Integer type variable conversion
if (!intval($sid)){
$sid=intval($_GET['id']);
if(!intval($sid)){
$sid=310;
}
}
?>
本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。
本文地址:http://www.xlkjgs.com/notes/html/1997.html