php中处理模拟rewrite 效果


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;
}
}
?>
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3