When you find that time is a thief, it has already stolen the light of your choice.One, GMT, UTC, CSTGMT: (Greenwich Mean time) GMT, the Sun passes Greenwich that moment as the standard for timekeeping.UTC: (coordinated Universal time) international
The following is a specific page content invocation code: Wordpess the code that invokes the content of a page is as follows: post_content;? > Post_author: (integer) The number of the author of the article Post_data: (character) date and time the
HiNow is Friday, the night, because back to the bedroom also seems to have nothing to do, as in the Department of Water a water.1. PHP---Cookie-----Set Cookies:The most common way to set up cookies in PHP is to use the Setcookie function, Setcookie
Both expires and max-age can be used to specify the expiration time of a document, but there are some minor differences1.Expires has been defined in the http/1.0, cache-control:max-age in http/1.1 is defined, in order to backward compatibility, only
The phpDate () function outputs the Chinese year, month, day, hour, minute, and second. Today, I output the Chinese year, month, day, hour, minute, and second using a simple date () function, which leads to some questions about the use of the
add Date_default_timezone_set (' PRC ') to the top page of the page; /*set the time to Beijing time, php5 default to Greenwich Mean Time*/Date() a: "AM" or "PM"A: "AM" or "PM"D: A few days, two digits, if not sufficient 0; from "01" to "31"D: Day of
The RSS 2.0 version of PHP generated class is used in the project.
You can generate an XML file and output it through a function simply by inputting it into the data structure.
/** * RSS Generation module * @author jerryli (@lijian @dzs.mobi) *
Add date_default_timezone_set (PRC) to the front page of the page; * Set the time to Beijing time. the default value of php5 is Greenwich Mean Time * date () a: & amp; quot; am & amp; quot; or & amp; quot; pm & amp; quot; A: & amp; quot; AM & amp ;..
The phpDate () function outputs the Chinese year, month, day, hour, minute, and second ,. The phpDate () function outputs the Chinese year, month, day, hour, minute, and second. of course, the php date function cannot directly output the Chinese
Add date_default_timezone_set (PRC) to the front page of the page; * Set the time to Beijing time. the default value of php5 is Greenwich Mean Time * date () a: & quot; am & quot; or & quot; pm & quot; A: & quot; AM & amp ;...
Time in PHP has 2 formatting functions: Date () and Gmdate ()
The date () function formats the local date and time and returns the formatted date string. Gmdate--Formats a GMT/UTC date/time and returns Greenwich Mean Time (GMT).
The Gmdate ()
On the top page of the page, add
Date_default_timezone_set (PRC); /* Transfer time to Beijing time, php5 default to Greenwich Mean Time */date () A: "AM" or "PM" A: "AM" or "PM" D: A few days, two digits, if not enough to fill 0; from "01" to "D:
/**
Desc:header functions to set various HTTP headers
link:bbs.it-home.org
Date:2013/2/24
*/
Defining the Encoding
Header (' Content-type:text/html;charset=utf-8 ');
Atom
Header ('
Used to demonstrate the PHP header () Function usage code, introduced the Refresh method, the foreigner wrote, of course, not too bad, the need for friends to refer to it.Example of header information for PHP header.
Override
Copy CodeThe code is as follows:
/*** function:php Header () examples (PHP)* * Desc:some examples on what to use the header () function of phpyou find a detailed tutorial at expertsrt.com (中文版) o R at Ffm.junetz.de (German). These is also a good
This thing is full of streets, but I do not want a clear and complete article, write it, as a memo.
Date ()Y: Year, four digitsY: Year, two digitsF: Month, English full name, such as: "January"M: month, two digits, from "01" to "12"N: month, two
PHP100 is the first professional website in China to share PHP resources. It also provides a PHP Chinese communication community. For PHP study researchers: The latest PHP information, original content, open source code and PHP video tutorials and
1, year-month-day
echo Date (' y-m-j ');
2007-02-6
echo Date (' y-n-j ');
07-2-6
Uppercase Y represents the year four digits, while lowercase y represents the two digits of the year;
Lowercase m represents the number of months (with leading),
This is the request message and you can see that the Cache-control has been set up successfully.
But the request still needs to be re-requested from the server.
The status here should be 200 yes, but the size should be from the cache.
Php date and time processing-Zheng AQI. For more information, see.
1. UNIX timestampPhpd processes data, especially when formatting data of the time type in the database, it is necessary to convert the data of the time type to the UNIX timestamp for
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.