Username
: >
password:
Even if the form is submitted or the refresh still retains the last input if you use the registration page, you won't get mad because the page is stuck and refreshed.
Source: http://www.jb51.net/article/49974.htm
First of all, we analyze the principle, to get the program running time, then you can define a variable at the start of the program to write down the current time, and then after we run the program to
Cd/soft/php-5.5.38/ext/bcmath/soft/php-5.5.38 is the directory to extract the PHP compression package/usr/local/php-5.5.38/bin/phpizeExecuting this command will produce some configure files in the current
The sequence begins with the third item, each of which equals the sum of the first two.
F0=0,f1=1,fn=f (n-1) +f (n-2)
Recursive and non-recursive version.[PHP] View Plain copy As the C and Java program Ape, the first time in writing not
class file, mobile_detect.php
[PHP] View Plain copy /** * Mobile Detect Library * ======= ============== * * Motto: "Every business should have a mobile detection script to detect mobile readers " *
Before the user thinkphp do paging encountered some paging problem; search conditions are brought into pagination:
$map [' article_title '] = UrlDecode ($_get[' article_title ']);
$date _sosuo[' article_title ' = Array (' Like ', '% '. $map ['
The easiest way to find the PHP installation directory pecl
Automatic Installation:
#/USR/LOCAL/PHP/BIN/PECL Install APC
Follow the prompts to complete the following step-by-step
Configure/etc/php.ini End JoinExtension=apc.so
Manual
Code that complies with the following six principles is generally considered to be extensible, maintainable, and highly reusable code:
1. Principle of single responsibility
Don't meddle.
2. The principle of open closure
Open to extension, closed for
installation
Before starting to use Redis in PHP, we need to make sure that the Redis service and the PHP Redis drive are installed and that PHP is available on your machine. Next let's install the PHP redis driver: Download the address:
Where is the PHP session data saved?
Where is the session data stored?
Of course it's on the server side, but not in memory, but in a file or database.
By default, the session Save method set in php.ini is files (Session.save_handler = files),
1. May be the connection between PHP and Apache is not even good
Solution: Compare my previous article, "Web maker Tools", I am categorized in the learning tool, I have described in that article the installation steps and their configuration (to
**
* 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 ')
PHP Tutorials: http://www.w3school.com.cn/php/
PHP is a powerful server-side scripting language for creating dynamic interactive sites.
PHP is free and widely used. For competitors like Microsoft ASP, PHP is certainly another high efficiency
1.file_get_contents
PHP code
Copy code code as follows:
$url = "Http://www.jb51.net";
$contents = file_get_contents ($url);
If there is a Chinese garbled use the following code
$getcontent = Iconv ("gb2312", "Utf-8", $contents);
Echo $contents;
?
The demo code is as follows:
A. Form page
insert title hereName:Age:Email:Password:
Two data processing pages
Header ("content-type:text/html; CHARSET=GBK ");$username =$_post[' username '];if (!isset ($_post["send") | | | $_post["send"]!= ' commit '
Implementation of the basic functions, the use of native PHP code writing, no OOP, code and HTML to blend in a piece, simply to achieve functionality. Will gradually put the idea of the mall to write out, from small to large, and gradually completed
/** * _code () is a validation code function * @access public * @param int $_width Indicates the length of the verification code * @param int $_height represents the height of the verification code * @param int $_rnd_ Code indicates the number of
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