1. Prevent jumping out of the web directory
First modify the httpd.conf, if you only allow your PHP script to operate in the Web directory, you can also modify the httpd.conf file limit php operation path. For example, if your web directory
Introduction: In the two-dimensional code widely used today, in the Web site automatically generate the corresponding QR code is the most basic requirements. This article describes three ways to automatically generate two-dimensional code using PHP.
Many people feel that machine learning is unattainable, and that this is a mysterious technology that only a few professional scholars know.
After all, you're letting machines running in the binary world get their own understanding of the real
PHP has a number of built-in functions, most of which are used by developers. But there are some equally useful but forgotten in the corner, this article will introduce 7 little-known features but very cool functions.
1.highlight_string ()
The
The build Excel of course uses phpexcel this kind of library, but it is too troublesome, for as long as simple generation is a bit unworthy
What is simple, import database data into Excel, this is simple
Here's a piece of code (code from the
Preg_match_all for global regular expression matching, this article mainly introduces the relevant information of the next preg_match_all, the need for friends can refer to the following
preg_match_all-the global regular expression matching
reprint: http://blog.csdn.net/kunlong0909/article/details/7818620
Friend, in the Zendstudio IDE, if you encounter importing a project, you find that the original encoding of the file in the project is inconsistent with the default read encoding
WEB 2.0 Programming Ideas: 16 rules
Original: Thinking in Web 2.0:sixteen Ways
Author: Dion Hinchcliffe
1. Before you begin, set a simple goal. Whether you're a creator or a user of a Web 2.0 app, make a clear idea of your goals. It's like "I need
MySQL Configuration for PHP
Error message: Class ' mysqli ' not found in
Answer:1. In Conf/php.ini, in vim with "/php_mysql" search to Extension=php_mysql.dll, remove the front ";",
At the same time add extension=php_mysqli.dll below;
Notice that
RSS, also called true simple aggregation (really-syndication) or RDF Site Summary (RDF sites Summary), is a file format that lets Web sites publish and aggregate the latest content to users. The RSS feed is expressed in XML, and the result is that
base64_encode-encoding data using MIME base64
Base64_encode () returns uses Base64 to encode data. This encoding is designed so that binary data can be transmitted through a non-pure 8-bit transport layer, such as the body of an e-mail message.
base6
Remember to bookmark this article, which is often used to jump or reload form forms when you make Drupal 7 custom module.
A summary of three main points:
1. After the page is submitted, after #submit processing, you need to redirect jump to
1. Open the file, close the directory, read the file
Opendir Closedir Readdir
Run
2. Create directory mkdir
vcd4kpha+pgltzybzcmm9 "Http://www.2cto.com/uploadfile/Collfiles/20140303/20140303094606311.png" alt= "\" >
Run
Create
Lamp environment is a very popular web development framework, but the version of the corresponding choice for the configuration is very important, today on the Internet to check the relevant information, do some about the Apache version and PHP
Experienced programmers found that PHP judged the length of the string, using Isset () at a faster speed than strlen () and performing more efficiently.
namely:
Copy CodeThe code is as follows:
$str = ' aaaaaa ';
if (strlen ($STR) > 6)
Vs
if
characteristics of static local variables:
1. It does not change with the invocation and exit of the function, although the variable continues to exist but cannot be used. If the function that defines it is called again, it can continue to be used,
1, preface the XML tree-like structure is distinct, very suitable as a configuration file. You can use DOM XML to manipulate XML in PHP. This article summarizes PHP's use of DOM XML to create, add nodes, and query XML files. 2, using the DOM XML XML
Destoon is a very good business to industry station procedures. The modular development of the program has a high degree of fit, and two times it has been developed smoothly. Data caching, permissions allocation, SEO features are good.
But in the
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