PHP Quick Development Guide for exporting Excel
Phpexcel has proprietary development documentation. For detailed operations, see its development documentation. This document only optimizes and integrates its usage to facilitate rapid development
1. Disable the submit button after submission (such as csdn)2. If data processing is successful, you will be redirected to another page immediately!Refresh after the operation is indeed a problem. You can use to jump to the page and close this page.
PHP Quick Development Guide for exporting ExcelPhpexcel has proprietary development documentation. For detailed operations, see its development documentation. This document only optimizes and integrates its usage to facilitate rapid development in
A mode window cannot process the parent window without processing it. A mode dialog box can process the parent window without processing the dialog box first.
When modal dialog is used, multiple pages will pop up, leading to the loss of Session on
Explore the usage of headers in php. Header () isusedtosendrawHTTPheaders. SeetheHTTP1.1specificationformoreinformationonHTTPheaders. Example 1: Copy the code as follows :? PHPHeader (Location: http:
Header()Is used to send raw HTTPHeaders. See the
As a software developer, you will certainly have a complete hierarchical understanding of how Web applications work, as well as the technologies used in these applications: browsers, http,html, Web servers, requirements processing, and so on.This
Header()is used to send raw HTTPHeaders. See the http/1.1 specification for more information on HTTPHeaders.
Example One:
Copy CodeThe code is as follows:
Header ("location:http://www.jb51.net";);
exit;//must add "exit" after each redirect to
Use phpciforce_download($filename, $data‑download .csv file to solve file name garbled. use php CI force_download ($ filename, $ data) to download .csv file to solve file name garbled and file content garbled. After a long time, I finally learned a
Some browsers cache the verification code, causing the verification code to expire when you re-open the page. Refresh the browser.
How can this problem be solved? what code can force the verification code to be reloaded.
Reply to discussion
How PHP prohibits browsers from using cached pages
Page slow exists sometimes is not necessary, we can prohibit the browser cache page.
In PHP can easily use the following statement to implement prohibit page caching, but it is difficult to
GB2312 's Encode
Header ("Cache-control:no-store, No-cache, must-revalidate");
Header ("Cache-control:post-check=0, pre-check=0", false);
/* Focus on Understanding the Strtotime () function1, strftime than time () easy to use, you can directly use
What will happen when you enter a URL? (Transfer), actual website1. First, you have to enter the URL in your browser:
2. Search for the IP address of the domain name in the browser
The first step in the navigation is to find the IP address of the
Recently, when I changed the page, I saw response in the page. setheader ("Pragma", "No-Cache"); this statement does not know what it is. After investigation, it is found that the browser cache is disabled. Now, HTML, ASP, in PHP and jsp4 languages,
Recently, I made an Ajax-related function. The goal is to generate different welcome languages based on different login statuses of users, as shown below:
When the user logs in, it will show: Hello, come again!
If the user does not log on, it
Encoding Problems . By default, the use of UTF-8, if you find that the object can not be found, may be JS input in the Chinese, while the JS encoding format may be gb2312, open JS available notepad, save as UTF-8 format documents.
Data obtained
From: http://article.yeeyan.org/view/54517/91367
As a software developer, you will surely have a complete hierarchical understanding of how network applications work. The technologies used by these applications include browsers, HTTP, HTML, network
Use HTTP Headers to defend against WEB Attacks
Load the page again and a warning box will pop up.
Perform the same test in FireFox and the test is successful.
Change the value of the X-XSS-Protection header to 1 and try again.
Header
Header ()Is used to send raw HTTPHeaders. See the HTTP/1.1 specification for more information on HTTPHeaders.
Example 1:Copy codeThe Code is as follows: Header ("Location: http://www.jb51.net ";);Exit; // after each redirection, you must add "exit"
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.