When writing or modifying a PHP file saved with UTF-8 encoding, there are sometimes some problems:
1. The page shows a "nobelium" word, the other blank;
2. Cannot log in or log out;
3. A blank appears at the top of the page;
4. Error warning on top
PHP references (add & symbols before variables or functions, objects, etc.)
The reference in PHP means: Different names access the same variable content.
There is a difference between the pointers in the C language. In the C language, the pointer
Please see an article: DZ Forum Core Code Analysis plan--install Package
It took two days to finish analyzing the global.func.php. Also intends to 3 days to complete the common.inc.php file, found again a lot of documents. So this time the post
Program One: Php intercept Chinese string method
Because the homepage and VTIGERCRM often in the interception of Chinese characters garbled (using substr), today found a better way to intercept Chinese strings, in this share with you.
Copy to
Even if you use PHP for many years, you will occasionally discover functions and functions that you have never known. Some of them are very useful, but they are not being fully utilized. Not everyone is going to read the manuals and function
Nearly always busy, encountered a manual live, need to download some remote pictures, altogether more than 100 Zhang, if by hand a piece of Save, also too time-consuming, so the internet Google a handful, find php bulk Download image file method,
/**
* Exception Handling for ㈠PHP5
*
* PHP 5 Adds an exception handling module similar to other languages. Exceptions generated in PHP code can be thrown
* Statements are thrown and captured by catch statements. The code that requires exception
UTF-8 encoded files are divided into BOM and without BOM two kinds, with the BOM everyone is easy to handle, without BOM will be a little trouble, so write a function to judge, the code is as follows:
Returns 1 for pure ASCII (that is, all
Fire Building Station College (bkjia.com) documentationThe Ubuntu system is up to date and does this before any action is made to ensure the stability of the system without some inexplicable phenomenon.
$sudo apt-get Update
$sudo Apt-get
PHP regular expressions are primarily used for pattern segmentation, matching, finding, and substitution of strings. Using regular expressions can be inefficient in some simple environments, so how to better use PHP regular expressions requires a
Classic Loop examples
Classic Loop examples
for ($counter = 1; $counter {
Print ("
counter is $counter
n "); Print 6 times
}
?>
for advanced use
For advanced use
/*
* * Print the necessary explanatory text
*/
Print ("
How
An easy way to do this is to modify the configuration file directly in the script:
As follows:
---------------------------------------------------------------------------------------
Modify Maximum execution time
Ini_set ("Max_execution_time", 240
What is the GD library?
GD Library is a php processing graphics extension Library, the GD library provides a series of APIs for processing pictures, using the GD library can process pictures, or create pictures. The GD library on the site is often
Starting with the PHP5.2.10 version (now available in PHP5.2.10 and 5.3 two versions), there are none-thread safe and Thread safe two versions to choose from, what is the difference between these two versions, and how should they be chosen as users?
Fire Building Station College (bkjia.com) PHP Documentation:Make a home page call image, sometimes need to get fixed-size image, because the image position of the home page is usually specified by the designer, if it is to do the latest release
The code is as follows:
/***************************************************************************Batch-replace, v1.1***************************************************************************file:batch-replace_utf8.phpFunctionality: This
/** * Created by JetBrains Phpstorm.* USER:LSL* date:13-8-28* Time: PM 2:58* Sensitive Word Filter Tool class* How to use* echo filtertools::filtercontent ("You Fuck me fuck the wolf hybrid two mountain food", "*", DIR. " Config/word.txt ", $GLOBALS
PHP regular expressions are primarily used for pattern segmentation, matching, finding, and substitution of strings. Using regular expressions can be inefficient in some simple environments, so how to better use PHP regular expressions requires a
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