The most recent project is to write a client for a rest service, where the signature check needs to generate a date in RFC 1123 format in the HTTP header.
This problem is better solved, simply flip through the PHP document, using Gmstrftime This
The most recent project is to write a client for a rest service, where the signature checksum requires a date in RFC 1123 format to be generated in the HTTP header.
This problem is better solved, simply browsing through the PHP document, using
The SS/ATOM format is easy to generate. The trouble is that the date format is generated (RSS => pubDate, ATOM => created ).We found that PHP Date provides the required global variables: (PHP 5.1.1 will support these global variables later)Echo DATE_
Runtime ConfigurationThe behavior of the Date/time function is affected by the settings in php.ini:
name
Description
default
PHP version
Date.timezone
Specify the default time zone (all Date/time
When learning HTTP, we have to focus on HTTP application. We should be clear about the time/Date Format of the HTTP application. Now we want to focus on the complete date. Other parts will be added later. I hope you will continue to pay attention to
PHP outputs the security method of the English time and date (RFC1123 format ). In the latest project, you need to write a client for a rest service. The signature verification must generate a Date in RFC1123 format in HTTPHeader. This problem is
The difference between the date function and gmdate function in php. PHP has two time formatting functions: date () and gmdate (). the description in the official document is date format a local time/date gmdate format a GMTUTC date/time, two time
PHP has two time formatting functions: date () and gmdate (), the description in the official document is date-format a local time/date gmdate-format a gmt/UTC date/time, and return the Greenwich Mean Time (GMT ).
For example, if the current time
Add the constant of the date function in the PHP5 program. The following constants are defined in PHP5.1.1 to provide standard expression methods for date formats (such as date ()). DATE_ATOM (string) atomic clock format (for example,: 15t15: 52: 01
PHP 5.1.1 defines the following constants to provide a standard date expression method, which can be used for date format functions such as Date ().
Date_atom (String)
Atomic clock format (eg: 2005-08-15t15:52:01+00:00)
Date_cookie (String)
HTTP
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.