Select to download the eAccelerator corresponding to your system and PHP version2. rename it as eaccelerator. dll (win version) and move it to the ext folder under your php Directory.3. Create the cache folder temp in c: \ php \ and change the
PHP provides two methods for regular expression text processing. One is the PCRE method (the PCRE Library implements a slightly different syntax and semantics from perl 5 (see below) function set of the regular expression pattern matching function.
First, let's look at the problem: the output of the following code,Copy codeThe Code is as follows:Var_dump (memory_get_usage ());$ A = "laruence ";Var_dump (memory_get_usage ());Unset ($ );Var_dump (memory_get_usage ());Output (on my PC, the load
Oracle will not talk about it. Linux is CentOS.1. Install httpd (apache)Yum install httpd-y
2. install php, php-gd, php-mcrypt, php-pecl *Yum install php-gd php-mcrypt php-pecl *-y
3. Install oci8Pecl install oci8Enter the oracle installation
The following functions can be used to replace the built-in is_writable function of php:Copy codeThe Code is as follows:// Can be used to replace the built-in is_writable function of php.Function isWritable ($ filename ){If (preg_match ('/\/$/', $
Proxy mode, which is an enhancement to a simple handler (or pointer) and is used to reference an object: This pointer is replaced by a Proxy object, the proxy object is located between the Client and the real execution program, and the pointer has a
Concept:XML serialization refers to the process of converting public fields and attributes into a sequence format (XML here) for storage or transmission. Deserialization re-creates the original state object from XML.Copy codeThe Code is as
PHP comparison operators appear too frequently, especially =If (a = B ){// Do something}But have you really mastered =? Details are important!Let's look at the following code and give the answer you think is correct.Var_dump ('123fg456 '= 123
1. Use GZip
Add the following code to the top of each PHP page:
After this code is used, the server compresses all the code that needs to be sent to the client and decompress it in the browser to speed up website operation. This function can also
For example: name | s: 4: "tasm"; passwd | s: 6: "111111"; mode | s: 1: "1", you also know the location where the session is stored, in addition, files can be uploaded. So, at that time, a small hacker was created, and the passwords of online
Multiple Functions use the same name, but the parameter table, that is, the number of parameters or (and) data types can be different. Although the method name is the same during the call, however, the corresponding function can be automatically
"^ The": matches strings starting with ";"Of despair $": match the string ending with "of despair;"^ Abc $": matches strings starting with abc and ending with abc. In fact, only abc matches;"Notice": matches a string containing notice;You can see
1. Purpose of this function: Remove repeated elements in the array and sort by key namesFunction assoc_unique ($ arr, $ key ){$ Tmp_arr = array ();Foreach ($ arr as $ k =>$ v ){If (in_array ($ v [$ key], $ tmp_arr )){Unset ($ arr [$ k]);} Else {$
For example, this webpageHttp://www.jb51.net/soft.php/1,100,8630.htmlIn fact, the soft. php parameter is 1,100,863 0.Equivalent to soft. php? A = 1 & B = 1 = 100 & c = 8630, but such a URL is too hard to remember. Search engines do not like it
Copy codeThe Code is as follows:Date_default_timezone_set ('prc'); // Default Time ZoneEcho "Today:", date ("Y-m-d", time (), " ";Echo "Today:", date ("Y-m-d", strtotime ("18 June 2008"), " ";Echo "yesterday:", date ("Y-m-d", strtotime ("-1 day"), "
Static attributes include the data to be encapsulated in the class, which can be shared by all instances of the class. In fact, in addition to a fixed class and restricted access methods, the static attributes of the class are very similar to 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