one, in a function, it is more efficient to pass an array using return than to use global, such as:
function Userloginfo ($usertemp) {
$detail =explode ("|", $usertemp);
return $detail;
}
$login =userloginfo ($USERDB);
Than
function Userloginfo
The header () function uses the description:
first, the role:~~~~~~~~~
PHP only in the HTTP protocol to the HTML document header to the browser, tell the browser how to deal with this page, as for the content of the transfer will need to
Zendextensionmanager.dll--zend Extension Manager
Zend Extension Manager Minimalist installation Tutorial:
1, installation Zend Optimizer 3.3.0a:http://www.jb51.net/softs/9305.html
This will put the Zend Extension Manager v1.2.0, and plug in the Zend
Grammar
String strings can be defined in three ways
"(single quote)" "(double quotation mark)
The escape sequence can be interpreted as \ \ \
The biggest feature of double quotes is that variable names are replaced by variable values
Delimiter
The past few weeks have been a rather complicated experience for me. I was one of the major layoffs in our company, but I experienced the fun. I've never been expelled, so it's hard not to think too much. I started looking at the recruiting section,
/****** generates session ID ******/
The basic idea: is to take the current microsecond time to obtain, and then generate a random number, the random number and the current time after the addition of encryption, and finally intercept the required
Variables: $_server, used in PHP 4.1.0 and later versions. Previous versions, using the $HTTP _server_vars
Variables: $_env, used in PHP 4.1.0 and later versions. Previous versions, using the $HTTP _env_vars
Variables: $_cookie, used in PHP 4.1.0
For example, an object is usually used to describe a date, a number, or a currency. The class definitions for dates, integers, or dollars are easy to use, fast, easy to encapsulate, and easy to copy, compare, or even create.
On the surface, these
The main is to get to the address bar some information, domain names, port parameters, etc.
Copy CodeThe code is as follows:
Get domain name or host address
echo $_server[' Http_host ']. "
";
Get web Address
echo $_server[' php_self ']. "
";
Get
Careful friends must have noticed that the last time a PHP page passed the parameters of the topic there is a program:
I used the post for the method, but why not use the Get method?
Let's take a look at the difference between post and
Copy the Code code as follows:
Get domain name or host address
echo $_server[' Http_host ']. "
";
Get web Address
echo $_server[' php_self ']. "
";
Get URL parameters
echo $_server["Query_string"]. "
";
Detailed address of the source page
echo
And the data is the HTML code string, such as this:
Zhang San commented on a long list of articles shared by John Doe
Interception is to intercept the DIV tag inside the thing, and to keep the HTML tag, just to do the text in the processing. For
Copy CodeThe code is as follows:
Setcookie ("username", "Zhuzhao", Time () +10);//Set Cookis Save 5 Seconds
?>
Copy CodeThe code is as follows:
if (Isset ($_cookie["username"))
{
echo $_cookie["username"];
}
Else
{
echo "Cookie not found";
}
?>
Although in the native development, debugging the system may not use it, but for the future in the remote virtual host to place the MySQL database, will inevitably use the MySQL GUI tools such as phpMyAdmin, so it is necessary to familiarize
Compare strlen and Mb_strlenWhen the word embox is an English character, the two are the same. Here the main comparison, the Chinese and English mixed in the time, two calculation results. (The encoding method is UTF8 when testing)
Copy CodeThe
first, the origin of the problem
Slightly larger sites, usually have several servers, each server running a different function of the module, the use of different two-level domain names, and a strong overall site, the user system is unified, that
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