PHP is a great web development language, flexible language, but see the PHP programmers repeating a number of mistakes. I made the following list, listing the 10 errors that PHP programmers often commit, most of which are related to security. Look
PHP restricts IP segment access, prevents IP from submitting the form's code
Recently, the small series found that there is a Yunnan netizen often in help the home to publish some rubbish information comment, because www.bkjia.com system dedecms
。 This article takes Mac OS X 10.6.3 and 10.8. 1 for example. The main contents include:
!” Page, which is located under/library (Resource Library)/webserver/documents/, which is the default root directory for Apache .
. It is important to note
PHP's HTTP authentication mechanism only works when PHP is running as an Apache module, so this feature is not available for CGI versions. In the Apache module PHP script, you can use the header () function to send the "authentication Required"
1, how to correctly create a
websiteThe index
page
When you create each site, the index page of the site is one of the first things to do. If you are a PHP
Novice, the typical practice when writing index pages is to program only what is needed for
When I wrote PHP today, I found that $_post["arr" could not get an array of the parameters arr, record it.
For example, the following forms are required for submission:
Use $_post["arr"] only to get the value of the last selected check
The error message for hessianphp is listed first:
Basic knowledge Background:
1) The ins and outs of "expect:100-continue":The purpose of the http/1.1 protocol is to design the Continue HTTP status code so that the http/1.1 protocol allows the
This article describes the STRTR string substitution in PHP for a friend who needs to learn a detailed reference to this article.
STRTR (String,from,to)or STRTR (String,array)
First of all, for the STRTR function, the first wayLet's take a look at
Introduction to the POP protocol
This paper briefly describes the principle of receiving the decoding of mail and MIME messages through the POP3 protocol, and provides two useful PHP classes for collecting and mime decoding, and provides examples of
In web development, you always encounter database-related operations. As a beginner, this is something that must be mastered. Here's a concrete analysis.
fields, in addition to field names, data types, and lengths, have other properties, such as
The role of the 1:php global variable is to define global variables, but this global variable is not applied to the entire site, but to the current page, including all files of include or require
$ a = 123 ;
function AA ()
{
PHPAfter a long period of development, many users are very familiar with PHP, here I publish a personal understanding, and we discuss the discussion. You may be tired of spending a lot of time browsing the external landscape of PHP (learning all
php simple Syntax One, PHP script code tag
PHP script is a special tag in the file included content, such as ASP is "", PHP can be seen as " ".
However, in order to adapt the XML standard to embed PHP into XML or XHTML, PHP does not recommend the
What we're going to introduce to you today is about
PHP header function sends a 404 status code to the browserHeader ("http/1.1 404 Not Found");OrHeader ("http/1.1 404″");
PHP Header Function Permanent redirectHeader
Recently want to do a function of the DataGrid through PHP, so that you can directly modify the contents of the table in the database, without the development of "new data Page", "edit Page", and so on the Internet to find, similar things also have
Send a 404 status code to the browserHeader ("http/1.1 404 Not Found");OrHeader ("http/1.1 404″");
Permanent redirectionHeader ("location:http://weizhifeng.net/");//default is 301 JumpTemporary redirectionHeader ("http/1.1 302 Found");Header
InThis function is of little use because the value of $w 3sky is set to 0 and output "0" each time it is called. Adding a variable to a $w 3sky++ has no effect, because once you exit this function, the variable $w 3sky does not exist. To write a
In
Shuffle--The array is scrambled:BOOL Shuffle (array &array)
php function Shuffle () An array of scrambled (randomly arranged cells).
Note: The PHP function shuffle () assigns a new key name to the cells in the array. This will delete the
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