What do you think of the session? I do not know if you have studied, today the PHP training teachers want to share some of the content of this, I hope you can enjoy.How long is the session life cycle ?
1 The end of the browser's lifecycle also ends
Common functions
The code is as follows
Copy Code
Get domain name or host addressecho $_server[' Http_host ']. " "; #localhostGet Web page addressecho $_server[' php_self ']. " "; #/blog/testurl.phpGet URL
Object-Oriented Development summary
1. Description and configuration of the object. (Can be understood as a description of the output text of an object)2. A processing of object methods. (It can be understood that customizing more humane error
The so-called value pass, which means that only the value of the object is passed to the target object, which is equivalent to copy; The system will reopen a completely identical memory space for the target object.
A reference, that is, passing an
[Original]php+ajax to realize the simulation win file management system
This tutorial by the original site, reproduced please specify the place
Author: www.111cn.net
Email: drise@163.com
qq:271728967//
Today to write a PHP and AJAX
First, Introduction
If you have any knowledge of unix/linux, you should know that most of them bring in C and C + + compilers, gcc and g++ respectively. UNIX uses these compilers in many places, such as program installation and make. With some
Multi-File upload is a basic PHP application, the relevant knowledge to everyone in detail, I have a limited level, but also please give more advice. Everybody progress together.
Upload files HTML input tag in the file type after the name to add [],
//
Original works
Original site: www.111cn.net
Author: noodles Love rabbit qq:271728967
NOTE: Reprint please explain the original out http://www.111cn.net
//Now to talk about post.php file, post.php file is very simple, this does not
The code is as follows
Copy Code
? PhpInclude './admin/connect.php ';@extract ($db->get_one ("select * from Movieinfo where id= '". $_get[' id ']. "));$db->query ("Update movieinfo set playnum=playnum+1 where id= '". $_get[' id ']. "
/*The function to invoke Linux commands in the PHP tutorial isString exec (String command, string [array], int [return_var]);Such as
EXEC ("Vpopmail");
echo exec (' whoami ');
Look at one more example
function exec_enabled () {$disabled =
/*
The code is as follows
Copy Code
int Preg_match_all (string $pattern, String $subject, Array & $matches [, int $flags [, int $offset]]);
Searches for all patterns that match regular expressions and presents
The efficiency of Json_encode and json_decode is not more efficient than serialize and unserialize, the performance is about twice times different when deserializing, PHP 5.3 performs more efficiently than PHP 5.2.
The code is as follows
1. constructor function __construct
If the function is __construct in the class declaration, it will be treated as a constructor and executed when the object is established, but in PhP4, the name of the constructor is the same as the class name. Oh,
POP protocol introductionThis article briefly describes the principles of receiving and MIME mail through POP3 protocol, provides two Practical PHP classes for receiving and MIME decoding, and provides samples for use. It is divided into two parts:
This class can be used in mass mailing mode. The Test environment is linux, and sendmail must be installed in the system before it can be used.If (! Defined ('mail _ CLASS_DEFINED ')){Define ('mail _ CLASS_DEFINED ', 1 );Class email {Function email (
To delete a folder in a row, you must first make sure that you have the permission! The code is as follows:Copy code // Description: Solution for deleting non-empty directoriesFunction removeDir ($ dirName){ If (! Is_dir ($ dirName )) {
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