When logging with PHP, or Ajax request error, You Want To debug. We usually write information to a specified file. Then the problem is handled according to the corresponding information. For example, I like to add the following code $ fp = fopen ('.
Due to version updates, these files have a new name: I use 5.4.Php. ini-production corresponds to php. ini-recommendedPhp. ini-development corresponds to php. ini-distThe other steps are the same. You still need to modify the configuration file,
I haven't written anything about PHP for a long time. This time, let's talk about PHP kernel-related knowledge.
According to the management, we should first prepare the environment before starting the explanation:
Environment preparation:
1. in
1. Example (described in C ++ ):
Row number Program
0 p (int w)
1 {if (w> o)
2 {cout
3 p (W-1 );
4 p (W-1 );
5}
6}
End
Print the result after executing statement p (4): 4 3 2 1 1 2 1 1 3 2 1 2 2 2 1 1
Ii. Description:
1. recursive calls share
[Php]
Function pregPN ($ test ){/**Matching mobile phone numberRules:Basic mobile phone number format:The first three are:Mobile: 134-139 147 150-152 157-159 182 187China Unicom: 130-132 155-156 185 186China Telecom: 133 153 180 189The last eight
In php, the difference between global and $ GLOBALS [""] originally felt that both global and $ GLOBALS had the same writing style, however, in actual use, it is found that the difference between the two is still very big!
Let's take a look at the
The following figure shows the front-end and back-end. The front-end uses the template of last Friday. The back-end is hand-written.
Today I learned
When the css overflow settings are out of the range, you can give the scroll bar or hide the
Install php extension module phpize
One way to install the PHP module is to add relevant parameters to recompile PHPOne is to use phpize, such as eaccelerator and memcache, which is convenient and can be enabled or disabled at any time without
Build a PHP Environment
1. First install phpStudy2013.exe
After installing the program integration package, you must manually set the port to be occupied.
Default username root Password root
Ii. Build the thinkphp framework
Go to the
1. Install eclipse1) download Eclipse IDE for Java EE Developers on the official website and decompress the package;2. install tomcat plug-in eclipse:1) download tomcatpluginv33.zip from http://www.eclipsetotale.com/tomcatplugin.html.2) decompress
The number of columns starts from the third and each item is equal to the sum of the first two items.
F0 = 0, F1 = 1, Fn = F (n-1) + F (n-2)
Recursive version and non-recursive version.
php function fib($n){ $array = array(); $array[0] = 1;
The bubble algorithm is a simple sorting algorithm. It repeatedly visits the series to be sorted, compares two elements at a time, and exchanges them if their order is wrong. The work of visiting a sequence is repeated until there is no need for
1. array_chunk () Splits an array into new array blocks. The number of units in each array is determined by the size parameter. The number of units in the last array may be smaller.Example$ A = array ("a" => "Cat", "B" => "Dog", "c" => "Horse ", "d"
Mobile_Detect is a lightweight open-source mobile device (mobile phone) detection PHP Class,
It uses a string in the User-Agent and HTTP Header to detect the mobile device environment.
The most powerful part of the PHP class library detected by
240 [1] => 124 [2] => 1 [3] => width = "240" height = "124" [bits] => 8 [channels] => 3 [mime] => image/gif) // image_type_to_mime_type-obtains the MIME type of the image type returned by getimagesize, exif_read_data, exif_thumbnail, and
'; $ SQL = '(select title, url from v9_news where catid = '. $ catrow ["catid"]. 'order by id desc) UNION (select title, url from v9_product where catid = '. $ Catrow ["catid"]. 'order by id desc) '; $ result = mysql_query ($ SQL); while ($ row =
/*** Using CJuiDialog to edit rows in a CGridView http://www.yiiframework.com/wiki/204/using-cjuidialog-to-edit-rows-in-a-cgridview translated by php attacker http://blog.csdn.net/phpgcs Scenario Solution Column hyperlink Javascript function *** // *
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