PHP date format a local time date(PHP 4, PHP 5)date- Formatting a local time/dateDescriptionstring date ( string $format [, int $timestamp ]) Returns a string that is the result of the timestamp of an integer in a given format string. If no
Date () is a commonly used date-time function, let me summarize the date () function of the various forms of usage, there is a need to learn the friend can refer to.Formatted dateThe first parameter of the date () function specifies how the
The Header () function sends an original HTTP header [HTTP header] to the client.
The header is the string sent by the server before the server passes HTML data to the browser with HTTP co-meaning.
Separate HTML files with a blank line. For more
Of course, you must first enable the reload_assist_ims on Function in CDN. in this way, no-cache is not used. this will convert no-cache to if-modified-since. so we write
ProgramIt is better to control if-modified-since. note: In the cache system
Etag is also available for static pages.
I. First, let's look at the first situation: Apache Static PageThe static pages sent from Apache to the client generally contain last-modified and etag. The values of these two labels come from the
Server Load Balancing Scheme with a large number of users
I. Preface
Ii. Compilation and Installation
Iii. Install MySQL and memcache
4. install Apache, PHP, eaccelerator, and PHP-memcache
5. Install squid
Vi. Postscript
I. Preface and
In PHP development, question 1: How to Use the ord () and intval () functions in PHP?
The ord () function returns the ASCII value of a character;For intval (), if the parameter is a string, the integer represented by the first numeric string that is
1. How the Client-side Http Request Header and Server-side Http Reponse Header work in Etag and Expires.
2. Static configuration of Etag and Expires in Apache, Lighttpd, and Nginx
3. Etag and Expires processing on dynamic pages with non-real-time
Function instance code for PHP file download,
PHP code for downloading objects using functions
Function download ($ url, $ filename) {// obtain the file size. To prevent files larger than 2 GB, use sprintf to read $ filesize = sprintf ("% u ",
PHP has many easy-to-use functions to display and process dates.
To display a date or time in a specific format, you can use the date () function. It has two parameters: how to display the date format and the timestamp representing the date you want
Fatal error: cannot redeclare is a problem that may be encountered during php Tutorial Development. The reason is that the same name function is repeatedly called,Function mydate ($ format = 'Y-m-d h: I: S', $ timest = 0){Global $ cli_time;$ Addtime
We can use meta tag and header in the PHP program to control the HTML page. For example: The code is as follows:Copy code Header ('cache-Control: max-age = 86400, must-revalidate'); // 24 hoursHeader ('last-Modified: '. gmdate ('d, d m y h: I: s'
Original StyleOriginal method: Send the header, and send the header of the attachment to the user's browser to indicate that the object is to be downloaded. Then, read the data in the database, parse it one by one, and write it into an excel file.
Browser cache is totally different. The cached content is stored locally in the browser, but the content is generated by the web server. Neither party can complete this system process independently, therefore, there must be a communication mechanism
Header usage
The Header () function sends an original HTTP header [HTTP header] to the client.The header is the string sent by the server before the server passes HTML data to the browser with HTTP co-meaning.Separate HTML files with a blank line.
Hpexcel is a PHP class library that is used to manipulate office Excel documents, based on Microsoft's OPENXML Standard and PHP language. You can use it to read and write spreadsheets in different formats. Overall is a good Excel operation class.
example, generate a CSV file and downloadTo generate an array of CSV files$CSVARR =array ();$CSVARR []=array (' User number 1 ', ' Work date 1 ', ' check-in time 1 ', ' check-in time 1 ');$CSVARR []=array (' User ID 2 ', ' Work date 2 ', ' check-in
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.