Roughly is not know how many levels of directory below the directory, also do not know how many files, the need to count the size of space, this can be used in albums/database occupancy/network u disk programs.
The general program idea is to use the
Get all the available modules-get_loaded_extensionsThis function returns all the (available) modules that have been loaded.
Usage:
Print_r (Get_loaded_extensions ());
2. Get the available functions for the specified module-get_extension_funcsThis
Aha, finally use PHP to achieve the login and registration pull, but the problem again, require Ajax and PHP combined to achieve registration register hood cleaning
PHP Login Source:
The following is the chklogin.php page code:
Session_Start
PHP uses Preg_match to match and determine whether a string contains Chinese or Chinese in the following ways:
$str = ' php Learning blog ';if (Preg_match ('/[\x7f-\xff]/', $str)) {The echo ' string has Chinese ';}else{The echo ' string has no
Examples of common php character functions and summary of php instances
This example summarizes common php character functions. We will share this with you for your reference. The details are as follows:
1. string substr (string $ string, int $
Share some explorations and skills encountered in php work [2], php inquiry
1. How to define common file separator numbers for linux and WindowsDIRECTORY_SEPARATOR: Directory separator, which is a built-in constant that defines php. On the debugging
_ Wakeup1. _ call_ Call ($ method, $ arg_array) when an undefined method is calledA special method _ call () is added to the object in php Tutorial 5, which is used to monitor otherMethod. If you try to call a method that does not exist in an object,
The function used to check the length of the array in php is sizeof count. Check a simple instance */$ Colorlist = array ("apple" => "red", "grass" => "green", "sky" => "blue ", "night" => "black", "wall" => "white ");Echo "array length:". count ($
Function wpjam_minify_Html ($ Html) {return preg_replace ($ search = array ('/\> [^ \ S] +/S ', // delete the space behind the tag '/[^ \ S] + \ ', ' functions. in the php File, the HTML code of the output page can be compressed: [code] if (!
On phpclasses.org, I accidentally found a very useful file. Developed by Bakr Alsharif, it can help developers detect bare image files based on skin pixels.It analyzes the colors used in different parts of an image and determines whether it matches
Get_cmd_var(PHP 4 and PHP 5)DescriptionString get_cfg_var (string $ option)PHP configuration options.This function does not return the PHP edits set during configuration information, or read the configuration files from Apache.Check whether the
Set_include_path("= 4.3.0, PHP 5" in PHP 4)Set_include_path-set and include_path configuration optionsDescriptionString set_include_path (string $ new_include_path)And the deadline script for the include_path configuration
Definition and usageThe filter_list () function returns all the supported filters of an array.SyntaxFilter_list ()Tips and instructionsNote: this result does not function the filter number, but the name of the filter. Use the filter_id () function
Php Tutorial increment/decrease operatorOnly one operation of variablesThe increment/decrease operator does not affect Boolean values. Decreasing the NULL value does not work, but the result of increasing the NULL value is 1. Example name effect+ + $
Today, we have a job to save the contents of a txt file containing up to 50 thousand records to the database. We started to think of using file_get_contents and later we can see that file is easier to use, the following is my program.Include_once ('.
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