10 security configuration practices of Linux servers and PHP are widely used in various Web development scenarios. When the script configuration on the server is incorrect, various problems may occur. Today, most Web servers run in Linux
The 25 PHP Security practices written to system administrators are widely used open-source server scripting languages. Through HTTP or HTTPS, Apache Web service allows users to access files or content. Incorrect configuration of the script language
The header () function sends the original HTTP header to the client.
Copy CodeThe code is as follows:
200 normal state
Header (' http/1.1 OK ');
301 permanent Redirect, remember to add a redirect address at the back location: $url
Header (' http/1.
Php implements mutual conversion in hexadecimal mode and php in hexadecimal mode. Php implements hexadecimal conversion. php hexadecimal conversion converts each other from decimal to other hexadecimal conversion. this number is used to continuously
The webpage cache is controlled by the cache-control in the HTTP message header. common values include private, no-cache, Max-age, must-revalidate, etc. The default value is private http://www.jb51.net/article/34017.htm.
The function of browser
Php implements mutual conversion of hexadecimal values, and php conversion of hexadecimal values
To convert from decimal to other hexadecimal values, the number is used to continuously divide by the number of hexadecimal values to be converted and
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"
Document directory
Client Testimonials Powered by PHP, XML and jQuery
Coding a Rotating Image Slideshow w/CSS3 and jQuery
Quick Feedback Form With PHP and jQuery
Bubbleriffic Image Gallery with jQuery
Coin slider: IMAGE SLIDER WITH UNIQUE
Set the content-type of common file types in php Headers
This article describes how to set content-type for common file types in php headers. For more information, see
In PHP, you can use the header function to send header information and set the
Common http header settings for php header Functions
This article mainly introduces the common http header settings of php header functions. This article provides code examples. The Code contains detailed comments. For more information, see
?
Convert decimal to binary, octal, and hexadecimal
To convert from decimal to other hexadecimal values, the number is used to continuously divide by the number of hexadecimal values to be converted and read the remainder. Connect them together.
Copy
How to hide the PHP version on a Linux Server
In general, information leakage exists on most web Servers installed by default, one of which is PHP. PHP is now a popular server-side html embedded language ?). In today's challenging age, many
/**
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 ('
Php converts binary, octal, and hexadecimal formats.
/**
* Convert decimal to binary, octal, or hexadecimal with zero padding before the digits being insufficient *
*
* @ Param array $ datalist
Session is a global variable of the server. Why can it switch between different pages without losing data or saving the data on the client? let's take a look at the working principle and usage of the session. As we all know, http is a stateless
When the file path contains Chinese characters and functions such as dirname are used for processing, an abnormal result is returned {code ...} result string (10) & quot; D: aaabbb & quot; execution environment: Server: Apache2.2.22 (Win32) mod_ssl2.
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
PHP only sends the HTML document header to the browser using the HTTP protocol to tell the browser how to handle the page. As for the transmitted content, you need to familiarize yourself with the HTTP protocol, PHP is irrelevant. in php, the header
[Switch] Top 10 PHP best security practices PHP is widely used in a variety of Web development. When the script configuration on the server is incorrect, various problems may occur. Today, most Web servers run in Linux environments (such as Ubuntu
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.