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