When we log in to the site management backstage, there will be prompted to remember the status of login, remember me and so on, this option is what to use it. If you check the log in state, the next time you browse the Web site does not need to fill
There are many kinds of functions in the PHP language, different application methods, the implementation of the function is not the same. We summarize the PHP timestamp function in this article, hoping to be a reference learning object. Discussion
Regular expressions
Role:
1, split
2, matching
3, find
4, replace
A regular expression consists of at least one atom
A regular expression is a string of characters
When to use regular.
1, form matching
2,url Rewrite, routing rewrite
3, thieves
PHP supports 8 original types, including 4 winning types, namely Boolean (Boolean), Integer (Shape), float/double (floating-point) and string (literal), and two composite types, namely: Array (array) and object (objects) ; Two special types, namely:
1, use the Pathinfo:pathinfo () function to return the file path information as an array.
results are as follows
Array
(
[dirname] => http://localhost//url path
[basename] => index.php//full file name
[extension] => PHP//filename
What is the difference between get and post in PHP and when to use a post to explain
difference:
1, get is generally the data transmitted after the hyperlink, the amount of data transmitted is small, can not be greater than 2KB.
2, post is
**
* Delete all subfolders under the folder at the specified time (after a few seconds)
* @param $dir String file path
* @param $sec String deletion time
* @param $file _type string file type
*/
function Delfile ($dir, $sec = ' _type= ', $file ')
The output is in the following statement: Echo iconv ("UTF-8", "GBK", $Song _url); Solve Chinese garbled problem
A The first is the coding of PHP pages
1. php file itself and the encoding of the Web page should match
A. If you want to use gb2312
PHP deletes any row of a text file or adds a row to delete a specified line of a realistic text file, which can be arbitrary, as determined by the user. Deleting any line of text files makes sense, for example, we use a text file to record
regular expression matching rules for PHP core technology and best practices
This article introduces several common matching rules.
1. Character Group
Finding numbers, letters, and whitespace is simple because you already have the metacharacters
upload the xlsx file to the workspace and store the data in the database MySQL
Controller Layer
upload.php
Class Upload extends Ci_controller {Public Function __construct (){Parent::__construct ();$this->load->helper (Array (' form ', ' url
first, the relationship between page jumps and page redirection is explained.
Page redirection must have page jump, page jump will not necessarily have page redirection, that is, page redirection is really included in the page jump, page
SPL is a collection of interfaces and classes that are used to troubleshoot a typical problem (standard problems).
1. Spldoublylinkedlist prototype:
SplDoublyLinkedList Implements iterator, arrayaccess, countable {/* Method/Public __construct
Hash table conflict between PHP core technology and best practices
Then, after the test, the output value1value2. When
$ht->insert (' key12 ', ' value12 ');
Echo $ht->find (' key12 ');
Found output value12value12. What's the reason?
This problem is
PHP core technology and best practices in reverse reference to regular expressions
A reverse reference is used to repeat the search for text that matches a previous grouping. For example: "\1" represents grouped 1 matching text:
\b (\w+) \b\s+\1\b
This article introduces, in the Nginx PHP-FPM uses the sock way to configure the example, has the need friend, the reference under.
Sock configuration of Nginx php-fpm, as follows:Copying code code example: location ~ \.php$ {Fastcgi_pass
Definition and Usage:
Gets the integer value of the variable, allowing it to be returned using a specific system. Default 10 systemNote: If the argument is an integer, no processing is done.
Grammar:
Intval (Var, base)
Parameter list:
PHP Four common asynchronous processing solutions
1, using the front-end AJAX processing
$.ajax ("do.php", {name: ' ityangs ', Job: ' PHP Programmer '});
2. Use the Popen function to execute local files
Pclose (Popen (' php/var/www/do.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