PHP is often blamed for the fact that it may allow URLs to be imported and executed. In fact, this is not surprising because this is one of the most important causes of a PHP application vulnerability known as the remote URL Include vulnerabilities.
Performance improvements
The overall performance of PHP 5.3 has improved 5-15%
MD5 () fast.Better stack implementation in the engineConstants moved to Read-only memory.Exception process improvements (simplified, less opcodes)(require/include) _once
A generic function that converts a Chinese character to Unicode, independent of any library, and other custom functions, but conditionally: this file and the input parameters of the function should be encoded with utf-8, or the function will be
This article mainly introduces how to use PHP to connect Mysql database through ODBC, the principle of which is no longer introduced here, please directly test the code below:
Copy to ClipboardWhat to refer
You should know that the caching mechanism can effectively reduce the site's server pressure,
SmartyOne of the highlights of the template engine is that it provides us with a very simple caching operation, so let's take a look at the
Php+access connection database commonly used in two ways
1. Connect using PHP's Odbc_connect () function by creating an ODBC driver
Copy to ClipboardWhat to refer to:
[www.bkjia.com]such as: $connstr =driver={microsoft Access DRIVER (*.mdb)}; Dbq= "
Optimization of the intersection of PHP arraysLet's say we're running a mobile-related website where users can filter their desired phone by specifying several parameters, such as the operating system, screen resolution, camera pixels, and so on.
The code is as follows:
/***************************************************************************Batch-replace, v1.1***************************************************************************file:batch-replace_utf8.phpFunctionality: This
We can use the header to control the HTML page using the META tag and PHP program. For example:
The code is as follows
Header (' cache-control:max-age=86400, Must-revalidate ');//24 hours
Header (' last-modified: '. Gmdate (' d, D M Y h:i:s '). '
I, to the computer this aspect has the very big hobby, now finally the work to earn some money, for the computer language this piece also only to understand the fur, or is to say only to understand a little, now I look internet it these already to
The first method: using AltaVista search engine to achieve
This method is to check the number of links to your site. This is achieved using AltaVista search engine. Here, we use the following search engines:
Http://www.altavista.com/cgi-bin/query?kl=
1. Use the Ip2long () and LONG2IP () functions to convert the IP address into an integer store into the database. This approach reduces storage space to nearly One-fourth (char (15) of 15 bytes to reshape 4 bytes), calculates whether a particular
The characters that need to be escaped in a PHP regular expression are as follows:
$^* () +={}[]|/:<>.? ' "
Note: The expression in Perl style requires a/start and end, such as:/food/table match character food
The Perl modifier is as follows:
I
There are more and more people playing micro-blog, and the third-party application of micro-blog development is more and more, they began to contact the Sina Weibo API development, Sina Weibo API development of more resources, Sina Weibo provides a
This article was translated from Why PHP is a Ghetto this article.
One day I was chatting with the boss of a great startup in Dumbo about why developers in non-PHP circles generally despise PHP and PHP-related communities. He made an impression
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