The main three attributes of an object
Object behavior: You can apply those actions to the object, turn on the light, turn off the light is behavior.
The shape of the object: When applied to those methods is how the object responds, color, size, and
Starting with version 5.2, PHP native provides Json_encode () and Json_decode () functions, which are used for encoding and decoding.
one, Json_encode ()This function is used primarily to convert arrays and objects into JSON format. Let's look at
Introduction: When you write a program or Web page that handles strings, you often find strings that match some complex rules
's needs. Regular expressions are the syntax used to describe these rules.
Example: In determining the user's email
Several PHP vulnerabilities to note
Several important php.ini options
Register Globals
The default value for the Register_globals option for Php>=4.2.0,php.ini is off, and when Register_globals is set to ON, the program can receive various
1. Download Xdebug module
Xdebug Download Address: https://xdebug.org/download.php
Note : with "ts" is the meaning of thread safety, "nts" he did not mark, that is, if the NTS to download the not marked, download the filename is actually marked. 2,
Hash table is the core of PHP, which is not too much.
PHP arrays, associative arrays, object properties, function tables, symbol tables, and so on are all used as containers for Hashtable.
PHP hashtable use of the Zipper method to resolve the
System Environment: centOS6.3apache:httpd-2.4.2php:php-5.3.21
I. Installation of MCrypt
1. Download Libmcrypt,mhash,mcrypt installation package
Copy Code code as follows:
Libmcrypt-2.5.8.tar.gz
# wget
Des encryption is a symmetric encryption in the Internet application of a number of encryption methods, PHP through the MCrypt extension library to support DES encryption, to use DES Encryption in PHP, you need to install the MCrypt expansion
1. The MAGIC_QUOTES_GPC option in the PHP configuration file php.ini is not turned on and is set to off2. Developers do not check and escape data typesBut in fact, the 2nd is the most important. I think that it is the most basic quality of a web
Preparation of related components
1. Install fastcgi for IIS6
Please refer to the Windows Server 2003 installation fastcgi:http://www.111cn.net/sys/windows/49843.htm
2, VC2008 Library
Software downloads
Microsoft Visual C + + 2008 SP1
32-bit
Because the local test is completely free, so ssh to the remote server (not the Publisher, the recommendation is not directly on the publish server directly to change things), the breakpoint test, and finally found that a more complex logic in the
First, use ApacheInstallation of ≡php 5.2.5
1, to its official site download Php-5.2.5-win32.zip and decompression (said: Do not download and use its installer, this way although very automated, very intelligent, but there are many aspects of the
PHP is quickly promoted by its ease of use, but ease of use is not to say that it can be used, in fact many programmers use it easy to set up a Web application system, but how many people carefully consider their code, whether easy to maintain,
The following are the functions that filter the HTML code:
Copy Code code as follows:
function Ihtmlspecialchars ($string) {
if (Is_array ($string)) {
foreach ($string as $key => $val) {
$string [$key] = Ihtmlspecialchars ($val)
2 PHP Test filesserver.php
Copy Code code as follows:
Phpinfo ();
Ensure that the client is not timed out when connected
Set_time_limit (0);
$ip = ' 127.0.0.1 ';$port = 1935;
/*+-------------------------------* @socket the
1, add elements to the array
PHP is a weakly typed language. Therefore, you do not have to declare the length of the PHP array as the C language. The process of adding elements to them is also the process of declaring and initializing them.
Here we obtain data from the data interface of the WAN or new network, and then output it through the simple text processing of PHP.
Copy Code code as follows:
$domain = $_get[' Q '];
Preg_match ("|
(. +?)
|is ",
Code is very simple, here is not much BB, we look at the comments, comments are not understand the small partners, to let go of php!!!
Copy Code code as follows:
/**
* Chinese Pinyin first Letter tool class
* Note: English string:
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.