blog内置变量
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | |
$pid | 1.0.8 | |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | |
$sent_http_connection | 1.0.8 | |
$sent_http_content_length | 1.0.8 | |
$sent_http_content_type | 1.0.8 | |
$sent_http_keep_alive | 1.0.8 | |
$sent_http_last_modified | 1.0.8 | |
$sent_http_location | 1.0.8 | |
$sent_http_transfer_encoding | 1.0.8 | |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | |
$pid | 1.0.8 | |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | |
$sent_http_connection | 1.0.8 | |
$sent_http_content_length | 1.0.8 | |
$sent_http_content_type | 1.0.8 | |
$sent_http_keep_alive | 1.0.8 | |
$sent_http_last_modified | 1.0.8 | |
$sent_http_location | 1.0.8 | |
$sent_http_transfer_encoding | 1.0.8 | |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
名称 | 版本 | 说明(变量列表来源于文件 ngx_http_variables ) |
$args | 1.0.8 | 请求中的参数; |
$binary_remote_addr | 1.0.8 | 远程地址的二进制表示 |
$body_bytes_sent | 1.0.8 | 已发送的消息体字节数 |
$content_length | 1.0.8 | HTTP请求信息里的"Content-Length"; |
$content_type | 1.0.8 | 请求信息里的"Content-Type"; |
$document_root | 1.0.8 | 针对当前请求的根路径设置值; |
$document_uri | 1.0.8 | 与$uri相同; |
$host | 1.0.8 | 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名; |
$hostname | 1.0.8 | |
$http_cookie | 1.0.8 | cookie 信息 |
$http_post | 1.0.8 | |
$http_referer | 1.0.8 | 引用地址 |
$http_user_agent | 1.0.8 | 客户端代理信息 |
$http_via | 1.0.8 | 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html |
$http_x_forwarded_for | 1.0.8 | 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html |
$is_args | 1.0.8 | |
$limit_rate | 1.0.8 | 对连接速率的限制; |
$nginx_version | 1.0.8 | |
$pid | 1.0.8 | |
$query_string | 1.0.8 | 与$args相同; |
$realpath_root | 1.0.8 | |
$remote_addr | 1.0.8 | 客户端地址; |
$remote_port | 1.0.8 | 客户端端口号; |
$remote_user | 1.0.8 | 客户端用户名,认证用; |
$request | 1.0.8 | 用户请求 |
$request_body | 1.0.8 | |
$request_body_file | 1.0.8 | 发往后端的本地文件名称 |
$request_completion | 1.0.8 | |
$request_filename | 1.0.8 | 当前请求的文件路径名 |
$request_method | 1.0.8 | 请求的方法,比如"GET"、"POST"等; |
$request_uri | 1.0.8 | 请求的URI,带参数; |
$scheme | 1.0.8 | 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect; |
$sent_http_cache_control | 1.0.8 | |
$sent_http_connection | 1.0.8 | |
$sent_http_content_length | 1.0.8 | |
$sent_http_content_type | 1.0.8 | |
$sent_http_keep_alive | 1.0.8 | |
$sent_http_last_modified | 1.0.8 | |
$sent_http_location | 1.0.8 | |
$sent_http_transfer_encoding | 1.0.8 | |
$server_addr | 1.0.8 | 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费); |
$server_name | 1.0.8 | 请求到达的服务器名; |
$server_port | 1.0.8 | 请求到达的服务器端口号; |
$server_protocol | 1.0.8 | 请求的协议版本,"HTTP/1.0"或"HTTP/1.1"; |
$uri | 1.0.8 | 请求的URI,可能和最初的值有不同,比如经过重定向之类的 |
$args 1.0.8 请求中的参数;
$binary_remote_addr 1.0.8 远程地址的二进制表示
$body_bytes_sent 1.0.8 已发送的消息体字节数
$content_length 1.0.8 HTTP请求信息里的"Content-Length";
$content_type 1.0.8 请求信息里的"Content-Type";
$document_root 1.0.8 针对当前请求的根路径设置值;
$document_uri 1.0.8 与$uri相同;
$host 1.0.8 请求信息中的"Host",如果请求中没有Host行,则等于设置的服务器名;
$hostname 1.0.8
$http_cookie 1.0.8 cookie 信息
$http_post 1.0.8
$http_referer 1.0.8 引用地址
$http_user_agent 1.0.8 客户端代理信息
$http_via 1.0.8 最后一个访问服务器的Ip地址。http://www.cnblogs.com/deng02/archive/2009/02/11/1387911.html
$http_x_forwarded_for 1.0.8 相当于网络访问路径。http://www.cnblogs.com/craig/archive/2008/11/18/1335809.html
$is_args 1.0.8
$limit_rate 1.0.8 对连接速率的限制;
$nginx_version 1.0.8
$pid 1.0.8
$query_string 1.0.8 与$args相同;
$realpath_root 1.0.8
$remote_addr 1.0.8 客户端地址;
$remote_port 1.0.8 客户端端口号;
$remote_user 1.0.8 客户端用户名,认证用;
$request 1.0.8 用户请求
$request_body 1.0.8
$request_body_file 1.0.8 发往后端的本地文件名称
$request_completion 1.0.8
$request_filename 1.0.8 当前请求的文件路径名
$request_method 1.0.8 请求的方法,比如"GET"、"POST"等;
$request_uri 1.0.8 请求的URI,带参数;
$scheme 1.0.8 所用的协议,比如http或者是https,比如rewrite^(.+)$$scheme://example.com$1redirect;
$sent_http_cache_control 1.0.8
$sent_http_connection 1.0.8
$sent_http_content_length 1.0.8
$sent_http_content_type 1.0.8
$sent_http_keep_alive 1.0.8
$sent_http_last_modified 1.0.8
$sent_http_location 1.0.8
$sent_http_transfer_encoding 1.0.8
$server_addr 1.0.8 服务器地址,如果没有用listen指明服务器地址,使用这个变量将发起一次系统调用以取得地址(造成资源浪费);
$server_name 1.0.8 请求到达的服务器名;
$server_port 1.0.8 请求到达的服务器端口号;
$server_protocol 1.0.8 请求的协议版本,"HTTP/1.0"或"HTTP/1.1";
$uri 1.0.8 请求的URI,可能和最初的值有不同,比如经过重定向之类的
以上就介绍了blog内置变量,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The message "Your organization has asked you to change your PIN" will appear on the login screen. This happens when the PIN expiration limit is reached on a computer using organization-based account settings, where they have control over personal devices. However, if you set up Windows using a personal account, the error message should ideally not appear. Although this is not always the case. Most users who encounter errors report using their personal accounts. Why does my organization ask me to change my PIN on Windows 11? It's possible that your account is associated with an organization, and your primary approach should be to verify this. Contacting your domain administrator can help! Additionally, misconfigured local policy settings or incorrect registry keys can cause errors. Right now

Windows 11 brings fresh and elegant design to the forefront; the modern interface allows you to personalize and change the finest details, such as window borders. In this guide, we'll discuss step-by-step instructions to help you create an environment that reflects your style in the Windows operating system. How to change window border settings? Press + to open the Settings app. WindowsI go to Personalization and click Color Settings. Color Change Window Borders Settings Window 11" Width="643" Height="500" > Find the Show accent color on title bar and window borders option, and toggle the switch next to it. To display accent colors on the Start menu and taskbar To display the theme color on the Start menu and taskbar, turn on Show theme on the Start menu and taskbar

We all have different preferences when it comes to display scaling on Windows 11. Some people like big icons, some like small icons. However, we all agree that having the right scaling is important. Poor font scaling or over-scaling of images can be a real productivity killer when working, so you need to know how to customize it to get the most out of your system's capabilities. Advantages of Custom Zoom: This is a useful feature for people who have difficulty reading text on the screen. It helps you see more on the screen at one time. You can create custom extension profiles that apply only to certain monitors and applications. Can help improve the performance of low-end hardware. It gives you more control over what's on your screen. How to use Windows 11

Screen brightness is an integral part of using modern computing devices, especially when you look at the screen for long periods of time. It helps you reduce eye strain, improve legibility, and view content easily and efficiently. However, depending on your settings, it can sometimes be difficult to manage brightness, especially on Windows 11 with the new UI changes. If you're having trouble adjusting brightness, here are all the ways to manage brightness on Windows 11. How to Change Brightness on Windows 11 [10 Ways Explained] Single monitor users can use the following methods to adjust brightness on Windows 11. This includes desktop systems using a single monitor as well as laptops. let's start. Method 1: Use the Action Center The Action Center is accessible

In iOS 17, Apple introduced several new privacy and security features to its mobile operating system, one of which is the ability to require two-step authentication for private browsing tabs in Safari. Here's how it works and how to turn it off. On an iPhone or iPad running iOS 17 or iPadOS 17, Apple's browser now requires Face ID/Touch ID authentication or a passcode if you have any Private Browsing tab open in Safari and then exit the session or app to access them again. In other words, if someone gets their hands on your iPhone or iPad while it's unlocked, they still won't be able to view your privacy without knowing your passcode

HTTP status code 520 means that the server encountered an unknown error while processing the request and cannot provide more specific information. Used to indicate that an unknown error occurred when the server was processing the request, which may be caused by server configuration problems, network problems, or other unknown reasons. This is usually caused by server configuration issues, network issues, server overload, or coding errors. If you encounter a status code 520 error, it is best to contact the website administrator or technical support team for more information and assistance.

The famous activation script MAS2.2 version supports digital activation again. The method originated from @asdcorp and the team. The MAS author calls it HWID2. Download gatherosstate.exe (not original, modified) from https://github.com/massgravel/Microsoft-Activation-Scripts, run it with parameters, and generate GenuineTicket.xml. First take a look at the original method: gatherosstate.exePfn=xxxxxxx;DownlevelGenuineState=1 and then compare with the latest method: gatheros
![How to Hide and Unhide Folders on Windows 11 [3 Ways]](https://img.php.cn/upload/article/000/887/227/169542942766265.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
Hiding folders is a great way to keep your desktop organized. Maybe you want to keep your personal files or some client details away from prying eyes. Whatever it is, the ability to put them away and unhide them when necessary is a big saver. In short, these hidden files will not show up in the main menu, but they will still be accessible. It's very simple and shouldn't take you too much time. How to hide a folder in Windows 11? 1. Use File Explorer and hit the + key to open File Explorer. WindowsE Find the folder you want to hide, right-click it and select Properties. Navigate to the General tab, check the Hide box, click Apply, and then click OK. In the next dialog box, check Apply changes to this folder, sub-folder
