First of all, the difference between a static variable and a global variable, the global variable can be accessed by all functions, if a number of independent functions using the same name of the variable, it will lead to conflict, when only one
Class A {
function EC () {
echo "Parser";
}
}
A::ec ();
Can be used to access static members, methods, and constants, and can also be used to override members and methods in a class.
?>
Excerpt from chaojie2009 's
column
Introduced
For PHP performance problems, the most talked about is the __autoload () method, many people mention that this method has a significant impact on performance. Others say that opcode can also affect the __autoload () method, so I made a
function checkprive () {
$M = $_session[' prive_list '); Model permissions
$A =$_session[' action ']; Operation Permissions
$UrlM =$_get[' m ']; $_get getting the Model
$UrlA =$_get[' a ']; $_get Get operation
if (Strpos ($M [' M '], $UrlM)!==false|
Tip: Users with UTF-8 encoding do not use Notepad to edit code files and template files, using tools that can remove the Unicode signature (BOM). If your website opens a blank, the style is lost, the program error is probably you use the tool that
/**
* Verification Code Class
* chaojie2008@126.com
* 2012-02-09
* */
Class Vailimg {
Private $width; Verify the width of the code picture
Private $height; Verify the height of the code picture
Private $codeNum; Number of verification code
A few days ago downloaded the thinkphp code to see, gave me the impression not CodeIgniter (CI) so good. Maybe it's because I downloaded the latest RC version! Inside the examples, open a few tips 404, because more concerned about the database
As XML continues to heat up, PHP provides a large number of standard libraries (class libraries) dedicated to XML to manipulate XML. For example, the rewriting of DOM XML extensions, SimpleXML extensions, SOAP extensions, and PHP5.1 XMLReader and
Operating Environment
apache2.2.22
php5.4
When you configure PHP to open the MySQL module, the two lines of code are commented directly as follows
[Plain] Extension=php_mysql.dllExtension=php_mysqli.dllThen restart Apache, the results pop-up prompt
Completed the first phase of the deployment of php5.3.10, and then made a summary, the deployment of PHP as Shell script automatically, and for the future slowly expand, and practice the previous learning shell script
Environment:-------------------
I read the PHP manual saying that global variables are recommended to be closed, that is, to set the regester_globales to OFF
And the manual also gave an example of what would have happened if you didn't turn it off, but the explanation in the
Let's see if other validations are easy!
Nickname Verification
JS Code
[JavaScript]function Checknickname (nickname){var xmlhttp;if (window. XMLHttpRequest){//code for ie7+, Firefox, Chrome, Opera, SafariXmlhttp=new XMLHttpRequest ();}Else{//code
One of Yahoo's front-end optimization practices is to first put the HTMLPart of the first output (Flush the Buffer Early), so that the browser can to download the head of the Css/js file, rather than wait until the entire HTML download to download
Last article http://www.BkJia.com/kf/201202/118458.html
Technical knowledge of regular expressions
[] Define character sets and example [A-z] [a-z] [0-9] [\f\r\n\t]
Locator ^[a-z][0-9]$ Start end
Quantifier * +? {n} {m,n} {N.} Refers to
Time conversion function
function Trantime ($time) {
$rtime = Date ("m-d h:i", $time);
$htime = Date ("H:i", $time);
$time = Time ()-$time;
if ($time $str = ' just ';
}
ElseIf ($time $min = Floor ($time/60);
$str = $min. ' Minutes ago ';
}
ElseIf
These can all be hard to knock out of remember how to look back to see AH must!!!
/*echo Qqqqqq\nqqqqqq
Qqqqqqqqqqqqq\rqqqqqqqqqqqqqqqqqq
mark*/
Technical Mark to another line, and is shelf write!
The effect is similar to ""
The most deadly point
First: Break statements are usually used in loop statements and switch statements, and when the break statement is used in a do-while, for, and while Loop statement, the program terminates the loop and executes the statement following the loop,
Twig is a simple and powerful template, because in learning SF so look at her.
The source of this article http://twig.sensiolabs.org/doc/tags/index.html
The currently supported tags include
For if macro filter set extends block include import from
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