Here's the code:
Copy CodeThe code is as follows:
$id =$_get[id];
Include ("admin/config.php");
$sql = "SELECT * from user where id= $id";
$data =mysql_fetch_array (mysql_query ($sql));
$p =sbc_dbc ($data [phone],1);
function Get_str ($str,
About Discuz do not use the pass to login content introduction
Discuz is China's most commonly used forum, although he has a pass for everyone to connect, but in fact the user's unity is very bad, often to build two user tables, the first is not
Of course, this thing is eating memory, configuration is almost not recommended to use.
When recently used, it was found that the PHP project was built, and then opened Zend Studio for Eclipse This error occurred
An internal error occurred during:
Implementation of friendly URLs (recommended for vomiting)
You often see other stations of the URL is this it?
Http://www.xxx.com/module/show/action/list/page/7
Or
Http://xx.com/module/show/action/show/id/8.shtml with a name
Copy CodeThe code is as follows:
$a = 1;
$b = 2;
if (1==1) {
$andy = ' Handsome ';
}
?>
For general comments, use the
Copy CodeThe code is as follows:
/*
$a = 1;
$b = 2;
*/
if (1==1) {
$andy = ' Handsome ';
}
?>
Tune the process, the old to
If you do not want the following to occur in the PHP page:
Single quotes are escaped as \ '
Double quotation marks are escaped as \ "
You can then set the following to prevent:
Method One: Set in php.ini: MAGIC_QUOTES_GPC = Off
Method Two:
1. Using gzip
Add the following code at the top of each PHP page:
With this code, the server compresses all the code that needs to be routed to the client and extracts it in the browser, making the site run faster. This feature can also save
;;;;;;;;;;;;
;; grammar;;
; The syntax of the file is very simple. whitespace characters and lines beginning with semicolons are simply ignored.
; Chapter headings (For example: [PHP]) are also simply ignored, even though they may have some meaning
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,
Copy CodeThe code is as follows:
/**
@Usage: Use some other storage method (MySQL or memcache) instead of PHP Sessoin
@author: Lein
@Version: 1.0
*/
Session_Start ();
if (!isset ($_session[' test ')) {
$_session[' test ']= "123_lein_". Date ("y-m-d
Since the session is stored as a text file on the server side, the client is not afraid to modify the session content. In fact, the server side of the session file, PHP automatically modify the session file permissions, only the system read and
Limit syntax:
Copy the Code code as follows:SELECT * FROM table LIMIT [offset,] rows | Rows Offset Offset
The limit clause can be used to force the SELECT statement to return the specified number of records. Limit accepts one or two numeric
A regular expression defines a rule for a string. The simplest regular expression does not contain any reserved words. For example, the regular expression hello only matches the string "Hello".
Regular expressions use some special structure, so they
The corresponding write a simple decryption, specifically for Eval. This principle is very useful, write it down here.
Copy CodeThe code is as follows:
/*
Author:zhiwushan
date:20080411
*/
File contents that have been encrypted
$a = "
Eval
If the format of time is absolute, then the now parameter does not work. If the format of time is relative, its relative time is provided by now, or if it is not supplied with the current time. Returns-1 on failure.
Echo Strtotime ("Now"), "\
Many people first want to start to optimize the program from the server cache, many different server caches have their own characteristics, such as I have been involved in some projects, according to the cache hit rate of different use 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