Copyright: This article from Oracle technology network original address: http://www.oracle.com/technology/global/cn/pub/articles/bpel_cookbook/chandran.html
Add BPEL to the Enterprise Integrated Hybrid EnvironmentAuthor: Praveen CHANDRAN and Arun
1. $ _ session ['php _ Self '] -- get the file name of the script being executed
2. $ _ server ['server _ Protocol'] -- name and version of the communication protocol when requesting the page. For example, "HTTP/1.0 ".
3. $ _ server ['request _ time'
Some SERVER information is often used in PHP programming. the detailed parameters of $ _ SERVER are sorted out, you can easily use $ _ SERVER ['php _ SELF '] # file name of the script being executed, which is related to document root.
$ _ SERVER
The preferred method for php to obtain external variables is to use the hyperglobal variables mentioned below. Prior to this, people were either dependent on register_globals or long pre-defined PHP array ($ HTTP _ * _ VARS ). Starting from PHP5.0.0
This article provides a detailed analysis of the SERVER variable $ _ SERVER. For more information, see
In-depth analysis of the SERVER variable $ _ SERVER:
1. $ _ SESSION ['php _ SELF '] -- get the file name of the script being executed
2. $ _
This article provides a detailed analysis of PHP's methods for obtaining the current url. if you need a friend, refer to the following, I hope to help you. Today, we will introduce the specific methods for PHP to obtain the function of the current
Common php pre-defined variables can be added to your favorites for future use.
The code is as follows:
Echo "current operating system information". PHP_ OS ."
";
Echo 'file path and FILE name: '. _ FILE __.'
';
Echo "current PHP version
Nginx is a high-performance, high-performance Web and reverse proxy server with many excellent features: Nginx is a good alternative to Apache server in the case of high connection concurrency: nginx is one of the software platforms that bosses
Copy CodeThe code is as follows:
echo "Current operating system Information". Php_os. "
";
Echo ' This file path and file name is: '. __file__. '
';
echo "Current PHP version information". Php_version. "
";
?>
Common PHP pre-defined
From PHP 4.1.0, the preferred method for obtaining external variables is to use the Super global variables mentioned below. Before that, people were either dependent on register_globals or long predefined PHP arrays ($HTTP _*_vars). From PHP 5.0.0,
$ _ SERVER [& amp; #39; PHP_SELF & amp; #39;] # file name of the script being executed, which is related to documentroot. $ _ SERVER [& amp; #39; argv & amp; #39;] # parameters passed to the script. $ _ SERVER [& amp; #39; argc & amp; #39;] #
What we are introducing to you today is a concrete way to get the function of the current URL of PHP, through the understanding of this function method, further deepen our understanding of the PHP language, improve our learning level.
Examples of
[page]$_server[' php_self '] #当前正在执行脚本的文件名, related to document root.
$_server[' argv '] #传递给该脚本的参数.
$_server[' argc '] #包含传递给程序的命令行参数的个数 (if run in command-line mode).
$_server[' Gateway_interface ') #服务器使用的 the version of the CGI specification.
$ _ 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 (
[PHP] predefined variable (1) $ _ server (Appendix: getting the current URL example)
For example, I need to obtain the current URL address.
$ Url_this ="Http: // ". $ _ Server['HTTP _ host']. $ _ server ['php _ Self '];Echo $ url_this;
Introduction: This is a detailed page for $ _ server variables. It introduces PHP, related knowledge, skills, experiences, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332946 '
For a new contact1. $ _ SESSION ['php _ SELF '] -- php server variable $ _ SERVER gets the file name of the currently executing script
2. $ _ SERVER ['server _ Protocol'] -- name and version of the communication PROTOCOL when requesting the page.
Nginx access restriction settings: access is restricted through HTTP Basic Authentication and nginx Authentication1. Overview
You can use the username and password authorization mechanism to restrict access to certain parts of the entire website or
Original: http://blog.csdn.net/ywk253100/article/details/25654101Guidance: Security is a constant topic, for WSDL and SOAP-based Web Service, we have ws-security such security norms to guide the implementation of authentication, authorization,
Php_server. SERVER variable $ _ SERVER details: 1. $ _ SESSION [PHP_SELF] -- get the file name of the currently executing script 2, $ _ SERVER [SERVER_PROTOCOL] -- Name of the communication protocol and version SERVER variable when requesting 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.