PHP 5.4.11/5.3.21 was released. Over 10 bugs and several security vulnerabilities were fixed in 5.4.10/5.3.20 of 2012-12-20 in the previous RC version. Complete improvements: 17 Jan 2013, PHP 5.4.11
-Core:
. Fixed bug #63762 (SIGSEGV when
By default, the magic_quotes_gpc command of PHP is on, and addslashes () is automatically run for all get, post, and cookie data (). This is for database security. It is insecure to store some characters directly in the database. They are: single
Netbeans is a cross-platform ide with unique features that are unmatched by other popular ides in many places. It is worth trying.
The following describes the installation and configuration process in windows.
First, go to netbeans to download
PHP provides eight data types: Boolean, integer, float, String, array ), class, resource, and null ).
Variables in PHP do not need to be declared.
The following examples can be used for learning:
This function sets a default parameter
Codeigniter is a small but powerful php framework.
You can download the framework from the official website.
The following describes the simple operations in codeigniter.
1. Create and Set Controller
1. Create the blog. php file in the Controller
This is a good news. php 5.2 support JSON. It's very easy to use. I like it, because I can transfer data between JavaScript and PHP freely accroading to this functions.
Json_encode
(PHP 5> = 5.2.0, pecl json: 1.2.0-1.2.1)
Json_encode-returns the
In the previous section, zde's
ConfigurationThe new version 3.5.2 is slightly different from the version 3.5.1, but it is irrelevant. Smart people should know how to use zde in this section.
Basic zde Functions Interface introduction. For example:
Reprinted from zhao_gw and finally edited zhao_gw
Step 1:1. First download and install the corresponding softwareJDK is absolutely necessary. It is the most basic requirement for running eclipse. Download it here.Eclipse integrates the php
Compared with the previous recursive functions, the MySQL contact function is very convenient to implement the unlimited classification of PHP.
-- Table structure for table 'category '-- Create Table 'category' ('id' int (11) not null
The date is smalldatetime in SQL Server 2000. Now we need to pour the data into MYSQL: Timestamp. The tool functions used are as follows:
Function formatstringdate ($ strdate) {$ conver = explode ("", $ strdate); $ currtime = (strlen ($ conver [3])
What's cool about PhP
May 26,200 8
PHP is the most impressive thing: You don't have to get to know the language well. Think about how many languages you know can achieve this? The obvious one is Java. You need to know a lot about compiling
String
Strip_tags(
String STR [, string allowable_tags]) returns a string to remove HTML tags. You can use the second parameter to set tags that do not need to be deleted.
Usage:
Premise: if there is such a string,
PHPCode
$ STR = " I am from
I checked the verification of the email format on the Internet and summarized it.
eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$str)
This seems more reasonable because it verifies the suffix name. Although there are more than four
The train collector actually has the function of extracting the first thumbnail, but you need to manually define the address format of the List page. The process of customizing the link address is a little complicated.
A commercial user needs to use
Today, PHP is used in the project to update databases in batches. In fact, we should write the stored procedure, but we do not want to discard PHP. So after a Google review, we found that the multi_query function can be used to implement the fight
PHP can simulate a browser to send an HTTP request to SAPI, provided that the HTTP extension ubuntu10.04 needs to be installed and used.
Install libcurl3-openssl-dev (requires PECL installation)
sudo apt-get install libcurl4-openssl-devsudo apt-get
I haven't been visiting my blog for a long time. It's because the project is too busy and I can't find time to write it, so I can't help paying attention to my blog. I recently reviewed the C language and implemented some sorting algorithms in the C
I always liked the default color settings for PHP in ue9, orange and red, and changed ue10 to the keyword blue. Then I changed it back:
Now I want to try php.exe to make the code highlighted and Output Consistent with my preference. I carefully
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