We are today to introduce you to the PHP to obtain the current URL function of the specific method, through the understanding of this function method, further deepen our understanding of the PHP language, improve our learning level.
Examples of PHP
$_server Predefined variables
Server variables: $_server
Note: Used in PHP 4.1.0 and later versions. Previous versions, using the $HTTP _server_vars.
$_server is an array that contains such things as the head (headers), the path (paths), and the
Fedora Core 3 Activates the SELinux option by default at installation time. SELinux provides a higher security than the normal Linux kernel, and in theory, it is impossible for an average user to get Superuser privileges when the system overflows
Advanced Security Considerations
Brief introduction
The 1th part explains how the IBM WebSphere application Server V7.0 and later versions consider the default security security principles at design time. The goal is to give the product a
PHP programming often need to use some of the server's information, special $_server detailed parameters to organize, convenient for later use. $_server[' php_self ' #当前正在执行 the file name of the script, which is related to document root. $_server['
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 =
installation configuration and connection of win2003+iis6+php5.3.8+mssql2008(This method applies to PHP 5.3 and later, SQL Server 2000/2005/2008)---------------------------------------------------------------------------------------------------------
Advanced Security Considerations
Brief introduction
The 1th part explains how the IBM WebSphere application Server V6.1 and later versions consider the default security security principles at design time. The goal is to give the product a
Note This series of file usage environments: Oracle data and JDOM1.0 versionsThe following tables and data are used in a total of four files.The Oracle table structure is as follows:/* The most critical of this table is the CID and PID two fields,
$_session[' php_self '--Gets the file name of the currently executing script.
$_server[' Server_protocol '--the name and version of the communication protocol when the page is requested. For example, "http/1.0".
$_server[' Request_time
Error message: mcrypt Extensions cannot be loaded. (1) Replace extensionphp_mcrypt.dll with extensionphp_mcrypt.dll to remove the previous one. [root @
Error message: mcrypt Extensions cannot be loaded. (1) extension = php_mcrypt.dll is changed to
Release date:Updated on:
Affected Systems:Kish-guest-posting 1.0Description:--------------------------------------------------------------------------------Bugtraq id: 51638Cve id: CVE-2012-1125
WordPress is a Blog (Blog, Blog) engine developed
This article mainly introduces the usage instructions of $ _ SERVER in PHP. For more information, see
This article mainly introduces the usage instructions of $ _ SERVER in PHP. For more information, see
Some SERVER information is often used
$ _ SERVER array element description $ _ SERVER ['php _ SELF '] # File Name of the script being executed, which is related to document root. $ _ SERVER ['argv'] # parameters passed to the script. $ _ SERVER ['argc '] # contains the number of command
PclZip is a powerful PHP class for compressing and decompressing zip files. PclZiplibrary can not only compress and decompress Zip files, but also extract compressed files. You can also add or delete an existing ZIP package. Official Website: www.
$ _ SERVER ['php _ SELF '] # File Name of the script being executed, which is related to document root.$ _ SERVER ['argv'] # parameters passed to the script.$ _ SERVER ['argc '] # contains the number of command line parameters passed to the Program (
Css3 selector weight (Part 1), css3 Selector
In fact, the notes I have written in these blog posts are the notes I wrote when I learned a long time ago, but I didn't have the habit of writing a blog before, so I wrote them all when I needed them
$_server[' http_accept_language '//Browser language $_server[' REMOTE_ADDR ']//Current user IP. $_server[' remote_host '//Current user hostname $_server[' request_uri ']//url$_server[' remote_port ']//port. $_server[' server_name '//name of the
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.