PHP Document compositionHtml/xhtml MarkCSS StylesClient-side scripting (such as JavaScript, jquery, etc.)Server script: A PHP file must contain server scripts, but not necessarily other types of code.PHP syntaxWhen parsing a file, the PHP engine
PHP Optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. Let's take a look at php below. how to set parameters that have a greater impact on performance in ini.# Vi/etc/php. ini
(1) Disable finding PHP
[Fengma family _ php] basic php knowledge, _ basic php knowledgeReview
What is the development history of php and php?
Configure php in apache
Configure mysql in php
How apache works
How the web works (similar to 4)
Domain name-based VM
Directory
Preparatory work
How to use XDebug for PHP debugging in NetBeans IDE
Debugging options
Working with toolbars and editors
debugger window
Debugging sessions
Sample Debug Session
Use other monitoring
The NetBeans IDE for PHP supports PHPUnit automated testing. The Phpunit,netbeans IDE provides code coverage for PHP, similar to the code coverage provided by the IDE for Python. The test output is displayed in the feature-rich Output window, which
There are three configuration items in the php.ini:Session.save_path= ""--set the session's storage pathSession.save_handler= ""--set user-defined storage function, if you want to use the PHP built-in session storage mechanism can use this function (
1. Try to be static:If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to be executed at level 100,000 and above, the
LAMP Environment PHP how the Cache accelerator works lamp=linux+apache+mysql+php1. Apache receives the client's PHP program request and filters it according to the rules.2.Apache sends PHP program request to PHP processing module libphp5.so.The
1. Try to be static:If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to be executed at level 100,000 and above, the
Require a file is wrong, then the program will break execution and display a fatal errorInclude a file if there is an error, then the program will not be the middle end, but continue to execute, and display a warning error.The following supplements
PHP Optimization for PHP optimization is mainly related to the php.ini in the main parameters of the reasonable adjustment and settings, the following we will look at some of the php.ini in the performance of a large number of parameters should be
There are two ways to refer to a file:require and include. Two ways to provide different use elasticity.1 require("MyRequireFile.php"); . How to userequire .This function is usually placed at the front of the PHP program, and before the PHP
PHP Optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. Let's take a look at php below. how to set parameters that have a greater impact on performance in ini.# Vi/etc/php. ini(1) Disable finding PHP
This article provides a detailed analysis of PHP performance optimization. For more information, see
This article provides a detailed analysis of PHP performance optimization. For more information, see
PHP Optimization for PHP is mainly for php.
When a page is accessed, A sessionid, session & amp; #95; destroy () will be generated and called? Close the browser? Close this webpage? Or is the webpage transferred to another address? Session & amp; #95; destroy () is automatically called?
Difference between include and require
Summary of the differences between require, require_once, include, and include_once in PHP.
"Include" and "required" have the same role. The only difference is that PHP will explain each time it encounters the "
NetBeans IDE PHP Quick Start tutorial (Web grooming)
Directory
Component Installation
Set up PHP projects in the NetBeans IDE for PHP
Run the first PHP project
Using the database server in the NetBeans IDE for PHP
Next steps
PHP High-efficiency notation (explanation)
1. Try to be static:
If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to
Php's error mechanism is also very complex, did a few years of php, also did not carefully summed up, now fill this Lesson.Special Note: The PHP version of the article uses 5.5.32Error level for PHPFirst you need to know what PHP errors Are. Up to
The use of require is as follows require("MyRequireFile.php"); . This function is usually placed at the front of the PHP program, and before the PHP program executes, it is read into the file specified by require to make it a part of the PHP program'
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.