2.PHP Getting Started
The online tutorial for the PHP site has been great. There are also links to other tutorials there. This section of this article will let you familiarize yourself with PHP. I could not have done without any omission, and my
In order to meet dvphp public test, special hair This tutorial, hope to some friends will help, hope will friends more advice!The following tutorials are implemented under Windows 2000, other systems please refer to the modification, 2003 of the
PHP and SQL injection attacks [II]
Magic Quotes
As mentioned above, SQL injection is primarily about committing unsafe data to the database for attack purposes. To prevent SQL note
Into the attack, PHP comes with a function to process the input
addressed to Hunte:
Long time not to see you on the Internet, really a little to say that the feeling, no Hunte phpuser.com nothing. Turn your stand on the two articles, a special turn over an article to show an apology.
----------------------------
1, file encoding: Refers to the page file (. html,.php, etc.) itself is what encoding to save. Notepad and Dreamweaver automatically recognize the file encoding when they open the page and are therefore less problematic. And Zendstudio does not
Copy CodeThe code is as follows:
if (defined (' Const_name ')) {
Do something
}
Variable detection is the use of isset, note that variables are not declared or declared when the assignment value is Null,isset return false, such as:
Copy the Code
The evening detailed look at the next cache_lite, the function than I imagined more powerful. Of course I have not yet found out whether it supports the ability to directly save PHP code to cache, but I think it is possible to extend the
Match double-byte characters (including kanji): [^\x00-\xff]
Application: Calculates the length of a string (a double-byte character length meter 2,ascii character 1)
String.prototype.len=function () {return This.replace ([^\x00-\xff]/g, "AA").
Problem:
When you use Ajax to send data to a server on Google maps, the server side is displayed as a URL garbled.
Zend Framework to MySQL storage data is garbled, but extracted is normal Chinese font,
MySQL input in Chinese, displayed on the PHP
In general, a member to provide registration of the site must collect the user's password, how to save the user password is a problem. We certainly cannot store passwords in plaintext in the database, because in this way, the average administrator
Perhaps for some people, the article is too simple, this is a tutorial for beginners, because the time is tight (to accompany the wife shopping, hehe), which appeared the design is not standard, code writing is not standard, and so on, the bug and
Everyone has the experience of commenting on the site, the traditional publishing process is nothing more than: publishing, submit page form, and waiting to refresh the page, so when the network is crowded, often need a long wait, today introduced
I commonly use MySQL database, so the program only writes the MySQL database operation class. I hope that you master to write another class of all, the best can send a copy to me.
db_mysql.php inherit the db.php interface, the implementation of
192.168.1.1 Single IP
192.168.1.* such proxy 192.168.1.1-192.168.1-255
192.158.1.2-20 this is representative 192.158.1.2-192.158.1.20.
It is also possible to write 192.168.1. [1|2|3]
Hehe ~ a method does not know whether the idea is thoughtful, take
HTML generated with the Smarty template in 1.php has a blank line at the top of the browser.
2. Use Firedebug to find meta and link tags in the body tag.
On this machine wmap run nothing, sent to the remote server is iasp service, the above bug
1, in the function, when passing the array
Using return is more efficient than using global
Like what
function Userloginfo ($usertemp) {
$detail =explode ("|", $usertemp);
return $detail;
}
$login =userloginfo ($USERDB);
Than
function Userloginfo ($
1. Improve the efficiency of PHP operation
One of the advantages of PHP is that it is fast and is sufficient for general website applications. However, if your site has high traffic, narrow, or other factors that make the server performance
I do not care about the hint box, sablog how to know that my version has a loophole, the program must have a back door. Automatic detection of the official version of the background is compared with the current version. Well, I found it later. In
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