Although the current web servers and development tools will not show any obvious vulnerabilities like ASP's % 81, however, some strange vulnerabilities caused by developers' negligence and combinations of various language features still exist. The
PHP keywords in PHP Include include, include_once, require, and require_once. In general, include and require are divided into one group, while include_once and require_once are a perfect form of improvement. By studying the nature of include and
$ _ SERVER variable and PHP use $ _ SERVER ['php _ SELF '] to obtain the current page address and its security issues. _ serverphp_selfPHP $ _ SERVER ['php _ SELF ']
$ _ SERVER ['php _ SELF '] indicates the address of the current PHP file relative
Copy codeThe Code is as follows: function getsiteurl ()
{
Global $ _ SCONFIG;
If (empty ($ _ SCONFIG ['siteallurl']){$ Uri = $ _ SERVER ['request _ URI ']? $ _ SERVER ['request _ URI '] :( $ _ SERVER ['php _ SELF']? $ _ SERVER ['php _ SELF ']: $ _
This article mainly introduces the function of php to obtain the complete URL address of the current page. if you are interested, you can refer to the function that we often want to obtain the URL of the current page when compiling a program using
$ _ SERVER [REQUEST_URI] is only available on the web SERVER supporting PATH_INFO. For php, it is available under apache, in php5, another $ _ SERVER is available only in php4.1.0 and later versions. $ _ SERVER [REQUEST_URI] is a type of predefined
This article mainly introduces the function of php to obtain the complete URL address of the current page. if you are interested, you can refer to the function that we often want to obtain the URL of the current page when compiling a program using
Php obtains the complete URL of the current page, and php obtains the current url. Php gets the complete URL of the current page. When php gets the current url and uses PHP to write programs, we often want to get the URL of the current page. The
"PHP_SELF"
The file name of the script being executed, which is related to document root. For example, using $ _ SERVER ['php _ SELF '] in a script with a URL address of http://www.jb51.net/test.php/foo.bar will get the result of/test. PHP/foo. bar.
The difference between $ _ SERVER [PHP_SELF] and $ _ SERVER [SCRIPT_NAME] in php. "PHP_SELF" indicates the file name of the script being executed, which is related to documentroot. For example, use $ _ SERVER [P "PHP_SELF" in the script with the URL
$ _ SERVER [& # x27; PHP_SELF & # x27;] what does this sentence mean? What is the role of this sentence? If (strpos ($ _ SERVER [PHP_SELF], $ url) & nbsp; false) {return & nbsp; false ;} $ _ SERVER [PHP_SELF] what does this sentence mean? What is
Are you sure you want to take your pants off and fart? you can see a piece of code written in this way.
$ Site_url = strtolower ('http ://'. $ _ SERVER ['http _ host']. substr ($ _ SERVER ['php _ SELF '], 0, strrpos ($ _ SERVER ['php _ SELF'],
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.