MySQL to create a database when the specified encoding is important, many developers have used the default encoding, garbled problem is impossible to guard against. The coding of the database can avoid the garbled problem caused by the pouring of the export to a large extent.
Web page data is generally UTF8 encoded, and the database defaults to Latin. We can modify the database default encoding for UTF8 to reduce the database creation settings, but a
When we use the traditional mysql_connect, mysql_query method to connect query database, if the filter is not strict, there is SQL injection risk, resulting in the site was attacked, out of control. Although you can use the mysql_real_escape_string () function to filter user-submitted values, there are also drawbacks. Using the PDO extended prepare method of PHP, you can avoid the risk of SQL injection.
PDO (PHP Data Object) is a major feature of PHP
For the person who intends to carry on the network to start a business, it is very easy to exist one problem is to make the website like Amateur (individual) website, so it is easy to make others produce distrust and affect business development. Here we summarize some of the common characteristics of amateur websites, please try to avoid:
1, cluttered web page background
This is one of the most easy to make a problem for beginners, he likes to use bri
constructor of a class does not release that memory in the destructor, so a memory leak occurs only once.4. An implicit memory leak. The program keeps allocating memory while it is running, but it does not release memory until the end. Strictly speaking, there is no memory leak, because the final program frees up all of the requested memory. But for a server program, it can take days, weeks, or months to run out of memory, which may result in the eventual exhaustion of all of the system's memor
Before their own forum because the program source code with the WIN2000 registry conflict, Post issued will appear invalid page, so that the forum has a lot of malicious repeated posts, and then came up with a way to avoid duplication with JS submission, the following is part of the source code:
Here's what you want to submit.
With this code, the Forum's repeated posts are significantly reduced, but there is a drawback, is to refresh once, the
Now almost all of the free mailboxes require SMTP authentication, unless sent to their own servers, such as 21cn.com Mail can only be sent to 21cn.com.
Avoid a method that cannot be sent when using JMail:
I take 21cn.com as an example,
jmail.send= "my@21cn.com" ' This address you can fill out your own, you can also fill out the wrong, but can not write mistakes
Jmai.addrecipient "somebody@somewhere.com" ' This address is the address you really want to
an equal footing in the assessment.
consider the actual test effort
With the development of automated testing tools and frameworks, the actual test workload has been very different from the old building and execution unit tests in schools. For example, if you require the creation and running of junit test cases, the additional development time and learning curve is possible, unlike traditional unit test methods. Therefore, the way the test is handled in the test evaluation needs to be cl
Select,radio form Echo Avoid using jquery to load assignments
Precautions :
Copy Code code as follows:
Not recommended: Use the following JS code
Copy Code code as follows:
The best way to do this is to make logical judgments on JSP pages
Copy Code code as follows:
Registration of the need to send a verification activation account of the mail, in order to avoid multiple messages repeatedly sent, so you can click on the Send, set button will be a period of time to continue to click. The following is a simple example:
Copy Code code as follows:
submissions:
①. When the form is submitted to a servlet, and the servlet responds to a JSP page by requesting forwarding, the address bar retains the path of the servlet, clicking Refresh on the corresponding page
②. Due to the network reason in the corresponding page did not arrive is a repeat click submit the form
③. Click "Back" and click "Submit" again.
④. Redirection will also reproduce the situation described above ②③, but the address bar path will change after redirection, so there is no
SQL Server has powerful replication capabilities, in addition to synchronizing data and database objects from one database to another and accurately distributing them. SQL Server replication is divided into three kinds, the following describes the three kinds of replication technology and some of the deficiencies, we can use the specific circumstances to choose the appropriate replication methods to avoid these defects interference.
1. Snapshot repli
not apply to figure. Here are some of my common code snippets:
There's nothing more to say. This is a common mistake. We can give the logo whether it should be H1 label and spray each other to the cows are finished home, but this is not the focus of our discussion. The real problem is the misuse of figure elements. Figure should only be referenced in a document, or surrounded by a section element. I don't think your logo is likely to be quoted in this way. Very simple, please do not use
good choice is half the success, if the method is not the effort is wasted, and suitable for their own optimization strategy is not shared by others. The website optimizes the road itself very wide, the key is how to treat, network companies do not take the road more and more small, but use their wisdom to enhance the service concept and resistance to market disruption of the ability to do a wide source of customers at the same time to avoid the fail
, Guilin SEO Prairie Wolf to tell us how to avoid high PR high-weight outside the chain construction error.
High-weight Web sites displayed on tools:
The high PR website displayed on the tool:
The tool shows no PR relative low weight website:
Obviously the top three sites in the first two is high weight, one is high PR, but the two sites outside the chain is not necessarily a high-quality outside the ch
not respond? After investigation, there are several systems in the computer room was destroyed by students in the network cloning recovery, The server needs to do a lot of data transfer, which makes the server overburdened, unable to respond to the student's DHCP request in time, resulting in the customer's inability to access the Internet due to the IP address.
The author waits until the network cloning process is complete, restarts the client, the client really has obtained the IP address sm
you know the chain anchor point to the rank of the auxiliary role, desperately in other pages and articles in the link back to the Chain home page, this can trigger the search engine punishment mechanism.
7, links to link the relationship
Many people will have a question, "How, links will also lead to the optimization of excessive?" links to the link to reduce the right phenomenon is there, how can there be optimization over a say? First: The number of links for a short time too much, it may
this article, this article link, the use of hyperlink diversification
Six, the chain must be high quality
Outside the chain hair need to pay attention to quality, I also looked at the forum a lot of people, direct stay outside the chain, such a chain often do not have too much index value, the proposal to enrich their content, reply to others do not firmly top, look at the kind of words, on the quality of the chain, my next issue specifically.
I simply narrated how to
We all know that usually, every Thursday is the day of Baidu update. Baidu update will often attract several happy several worries. Happy is their website rankings, included may have increased. Sad webmaster is often because of their own website suffered Baidu punishment. So, how to avoid Baidu punishment?
First, to ensure that daily content of fresh
It is well known that Baidu is very picky, Baidu also and people like fresh and novelty things, if y
Before writing a post, avoid repeating code--know your library. It's raining outside today, it's not a good mood, just come and complain =v=
Last week a company came here to recruit, the C + + version of the volume is said to be a request for a custom struct vector to do the sorting. Struct has two field, an int num, and a string name; Sorting requirements are in num ascending order, if Num is equal, in ascending name. What exactly is the original qu
In many sites have seen how to build a blog outside the chain and the importance of building a blog outside the chain, and how to use the blog to establish the chain need to avoid the misunderstanding and attention issues, and so on, but rarely mentioned, in fact, novice webmaster in the use of blog will encounter some problems, will also go into many misunderstandings, if you are also a novice webmaster, So this article for you is a very important re
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.