First, PHP gets the URL of the current page:
Copy the Code code as follows:
Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName =
The first is PHP to get the current page URL:
Copy Code code as follows:
Get the current script URL
function Getcururl ()
{
if (!empty ($_server["Request_uri"]))
{
$scriptName = $_server["Request_uri"];
$nowurl =
PHP get URL parameter method summary, PHP get URL parameter
The example in this article describes how PHP gets URL parameters. Share to everyone for your reference. Specific as follows:
In PHP, there are many ways to get the parameters in the URL,
First, PHP retrieves the URL of the current page:
CopyCode The Code is as follows: // obtain the current Script URL
Function getcururl ()
{
If (! Empty ($ _ server ["request_uri"])
{
$ Scriptname = $ _ server ["request_uri"];
$ Nowurl = $
First, PHP retrieves the URL of the current page:Copy codeThe Code is as follows:// Obtain the current Script URLFunction GetCurUrl (){If (! Empty ($ _ SERVER ["REQUEST_URI"]){$ ScriptName = $ _ SERVER ["REQUEST_URI"];$ Nowurl = $ scriptName;}Else{$
In the CodeIgniter framework, what about URL (index. php. In the CodeIgniter framework, the codeigniter framework recently used CodeIgniter, a lightweight php framework, to build its own personal website. At first glance, the CodeIgniter framework
Php parses the url (parse_url) parameter into an array (parse_str ). The current url is obtained through php. what should I do if I need to extract parameters in the url? This process is actually quite simple. you can use two built-in functions of
Get the current URL through PHP, if you need to extract the parameters in the URL, how to do it? This process is actually quite simple, using PHP's two built-in functions can be completed smoothly, namely the Parse_url and PARSE_STR functions. These
What about URL (index. php) in the CodeIgniter framework?
Recently, CodeIgniter, a lightweight php framework, was used to build a personal website. At first glance, the code is clear and concise, and the MVC model is very easy to maintain. The tool
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.