PHP matches the mailbox code, the analysis is also more detailed, I hope that the problem of friends, you can look at the nextCODE:1. 2. if (Ereg ("/^[a-z") ([A-z0-9]*[-_.]? [a-z0-9]+] *@ ([a-z0-9]*[-_]?[ a-z0-9]+) +[.] [A-z] {2,3} ([.] [A-z] {2})? $
In considering the session, I finally gave up the session:1, the original session is the use of files to manage. The quality of the file system directly affects the performance of the session, especially when there are several K people online at the
Extracts a function from the Gregarius. You can automatically convert a relative path in a Web page to an absolute path.
function Relative_to_absolute ($content, $feed _url) {Preg_match (/(HTTP|HTTPS|FTP):///, $feed _url, $protocol);$server _url
Given a probability (here is the number of points), determine whether an event occurred.
can be used in accordance with the number of points earned by the user, randomly generated site lucky Star and other aspects (note: There is a
Copyright notice: Can be reproduced arbitrarily, please be sure to use hyperlinks in the form of the original source of the article and the author's information and this copyright notice.Http://www.chedong.com/blog/archives/001431.htmlTry:The
PHP/******************************************************************Check MD5 (md5sum for php)2008-11-09Amxku.netVerify the accuracy of the file.After the site is compromised, check the file for accuracy.*uix can be used md5sum * >md5sum to get
Here is the code snippet:
/**************************************************************************** pinyin.php (as the current mainstream development language)* ------------------------------* Date:nov 7, 2006* Copyright: Modified from the
About the performance of require, includeTest data:There is an array, a total of 30,000 pieces of data, 1MB size, I divided into 2 ways to put data to test//sexinsex1. array.php directly create a new empty PHP file, put the array in
2. Array.txt to
PHP saves the session by default is the way to save the file, which is only available on Windows with a small amount of space on the file, but if we adopt Uinx or Liux file system, the file space overhead of such file system is very large, However,
This PHP code is part of a program that I do, and now post it to share. The function of this code is to create a picture, not only can use a custom font in the picture to write English, can also write Chinese! This Code applies to the verification
Just in the PHP group and we chat, promised everyone to write an article on how to implement the PHP source code encryption, through this will be the opportunity for QA in the smoke, on this issue, I write some ideas.As I've described in previous
The reader of this document is an experienced PHP programmer, the document will introduce some development techniques in PHP development, hoping to have some inspiration to the reader.
1. Improve the efficiency of PHP operation
One of the
PHP reads the function of how many files are in a folder.For example, there is a pic folder, there are 100 pictures, the following function can get his total 100
$dir =./pic;$handle = Opendir ($dir);$i = 0;while (false!== $file = (Readdir
Most people who use PHP will use cookies once they are applied to the session.
The cookie is good but it also brings us some hidden dangers.
Hidden danger One: If the client machine's cookie is disabled by the virus, then the session will be the
In the student to do a PHP graduation design, encountered this problem
I believe many friends have met, backstage I use the framework made, the code is as follows:
And on the left is the menu bar, there is an exit, when I click to exit,
http://www.vul.kr/?p=455 Author: ttfct
06, the discovery HTTP header can be customized, insert the specified code, August 06 successfully completed Phpcshell C/S tool, after the use of this tool has been used to bypass ids,07 years have encountered
When the Visitor browser language is Chinese, enter the Chinese layout
Foreign users default browser is not Chinese to jump English page
PHP Code:
$lan = substr ($HTTP _accept_language,0,5);if ($lan = = "ZH-CN")Print ("
");ElsePrint ("
");?
Imagine using a simple HTML file to send a request to a server-side script, receive a custom XML file based on that request, and then display it to the user with little need to refresh the browser! The author will work with you to explore how to
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