Use PHP directly to implement pseudo-static page code without mod_rewrite_PHP tutorial

WBOY
Release: 2016-07-21 15:48:52
Original
821 people have browsed it

Use the following code when initializing your program:

Copy the code The code is as follows:

$ Php2Html_FileUrl = $_SERVER["REQUEST_URI"];
$Php2Html_UrlString = str_replace("/", "", strrchr($Php2Html_FileUrl, "/"));
$Php2Html_UrlQueryStrList = explode("@", $Php2Html_UrlString ; mpArray[1 ];
}
echo false static: $_GET variable
;
print_r($_GET);
?>



Then calling the $_GET variable in php is like normal.
Connection usage:
****.php/param1|1234@param2|4321
Same as ****.php?param1=1234¶m2=4321.



http://www.bkjia.com/PHPjc/319673.html

www.bkjia.com

http: //www.bkjia.com/PHPjc/319673.htmlTechArticleUse the following code when initializing your program: Copy the code as follows: ?php $Php2Html_FileUrl = $_SERVER[" REQUEST_URI"]; $Php2Html_UrlString = str_replace("/", "", strrchr($Php...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!