Tan Ba App System Development Framework Analysis

Source: Internet
Author: User
Tags response code

In the disruptive innovation theory, the core concept is "value net", and its three main features are cost structure, performance attribute and organization form. In a certain value network, enterprises will follow the inherent cost structure, and with some performance attributes for the most important value judgment. Once the value network is formed, it is very difficult to escape, people think that managers are making decisions, in fact, is determined by the value of the network.

Header (String,replace,http_response_code)    /*string: Required. Specifies the string of headers to send.    Replace: Optional. Indicates whether the header replaces the previous header, or adds a second header.    The default is True (replace). False (multiple headers of the same type are allowed).    Http_response_code: Optional. Forces the HTTP response code to the specified value. */

Tan Ba App System Development Framework analysis: 188.2504.1885 Micro, electricity, Tan Ba Agent Dividend system development analysis. The background of the enterprise is just like an invisible value net, and the internet age and the industrial age in the three characteristics of the profound differences, the book will start from three differences, deduce three thinking mode rule: and
On this basis, summed up the survival of the internet era is the "product-oriented community."

Access to the Internet era, the cost of information is greatly reduced, "all industries are media, all content is advertising." Excellent products can allow enterprises to directly connect users, know the exact needs of users, to get rid of advertising, channels and inventory dependence, and then can eliminate the intermediate costs, at cost prices to sell goods, so that business model more viscous and competitive
Competitive power. such as Xiaomi and Tesla, through the social media contact users, through their own e-commerce platform to sell products, and with the user to form an effective interaction, according to the number of users booking batch production products, so as to achieve "0 advertising costs, zero inventory, 0 channel fees" cost structure, which for traditional manufacturers is unthinkable.

Usage 1: Jump page

Header ("location:https://baidu.com"); Normal jump Header (' refresh:3; url=https://www.baidu.com ');  3s after jump//in the header for the jump, to avoid errors, the code continues to execute, generally add a exit;

Usage 2: Declare content-type (which I often use to solve garbled characters)

Header (' Content-type:text/html;charset=utf-8 ');

Usage 3: Return the response status code

Header (' http/1.1 403 Forbidden ');

Usage 4: Perform the download operation (the location of the hidden file)

Header (' Content-type:application/octet-stream '); Set Content Type header (' content-disposition:attachment; filename= ' example.zip ');//set MIME user as Attachment header (' Content-transfer-encoding:binary '); Set the Transmit mode header (' Content-length: '. FileSize (' Example.zip ')); Set Content length

Usage 5: Control browser caching

Header (' Expires:mon, Jul 1997 05:00:00 GMT ');     If the page on the server changes frequently, set it to-1, which indicates an immediate expiration header (' last-modified: '. Gmdate (' d, D M Y h:i:s '). ' GMT '); header (' Cache-control:no-store, No-cache, Must-revalidate '); header (' Cache-control:post-check=0, pre-check= 0 ', false); header (' Pragma:no-cache ');

Tan Ba App System Development Framework Analysis

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.