The following is a personal summary of the PHP file manipulation function. Of course, that's just part of it, and there's a lot that I haven't listed.
first, parse the path:
1 Get FileName:
BaseName ();
Gives a string containing a full path to a
This article describes the PHP directory traversal function opendir usage. Share to everyone for your reference. The specific analysis is as follows:
The Opendir () function opens a directory handle, and if the function runs successfully, it
You may have some knowledge of the PHP timestamp , so how do we apply it to get a specific date? Today we're going to introduce you to the specifics of how php timestamp gets the current period.
Implementation function: Gets the timestamp of a
PHP variable declaration and assignment, the variable name exists in the symbol table, and the value and class information exists in Zval, Zval contains four variables,is_ref,refcount,value,type,zval source code is as follows
Copy Code code as
This article illustrates the method of comparing the key names of PHP array operations with the difference set and the intersection assignment. Share to everyone for your reference. The specific methods are as follows:
This example primarily
That is because the php.ini turned off the error display, the error written in the file, this is the result of artificial settings, Display_errors =on is good.
However, error-safe points are not displayed, it is recommended to open when debugging,
Although PHP was developed in C language, I am puzzled that PHP does not provide direct support for the struct of the struct body.However, PHP provides the pack and unpack functions for binary (binary data) and PHP internal data interchange:
This article describes in detail the PHP dynamic compiler appears cannot find autoconf solution. Share to everyone for your reference. The specific methods are as follows:
After installing PHP, you want to dynamically compile PHP's memcache
The example in this article tells you how PHP looks for a specified size file under a specified directory. Share to everyone for your reference. The implementation methods are as follows:
PHP to find the size of the file is to traverse the
There is a new need to add to prevent users from frequently refreshing the page. The specific requirement is that when the user requests the specified page more than 100 times in a minute, the request is rejected directly. After careful analysis, it
The sort () function is used to sort the array cells from low to high.The Rsort () function is used to sort the array cells from high to low.The Asort () function is used to sort the array cells from low to high and keep the index relationship.The
PHP has many built-in functions, most of which are widely used by programmers. But there are also some functions hidden in the corner, this article will introduce you to 7 little-known, but very useful functions. A useless programmer might as well
This example describes a workaround for PHP using the ziparchive hint fatal error:class ziparchive not found in. Share to everyone for your reference. Specifically as follows:
Ziparchive is a compression and decompression function that comes with
The role of data encryption in our lives has become increasingly important, especially given the large number of transactions and data transmissions that occur on the web. If you are interested in adopting security measures, you will also be
This article illustrates the PHP XML file interpretation class and its usage, which is a very practical technique. Share to everyone for your reference. Specifically as follows:
The XMLParser.class.php class files are as follows:
parser
This article describes the implementation of PHP to send the message class with the attachment method, is a very useful function. Share to everyone for your reference. The specific methods are as follows:
The emailclass.php class files are as
This article describes the PHP file cache content save format, for PHP project development is very practical value. Share for everyone for reference. The specific analysis is as follows:
1, PHP file cache content Save format
PHP file cache Content
Gd_info function: Get information on the currently installed GD librarygetimagesize function: Gets the size of the imageImage_type_to_extension function: Gets the file suffix of the image typeImage_type_to_mime_type function: To determine the MIME
Php_screw is really good, but it can only play the role of encryption, and does not accelerate and optimize the role.
Let's take a look at the following:
Turck MMCacheIts role is through the compilation of PHP code to accelerate, optimize the PHP
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