Personal notes ... For reference, if wrong please point out, thank you
The code is as follows
Copy Code
/******************************************* Class object Instance description (normal Class) ***********************
The scope of the variables in PHP is described in the PHP manual
In a user-defined function, a local function range is introduced. Any variable that is used inside a function is limited by default to the scope of the local function. For example:
Composer is a PHP-dependent management tool that gives PHP a new lease of life, a modern web development specification, packagist a library of PHP components, and other mirrors.
Submitted a PHP component of its own development on packagist so that
Pcntl the extensions that the PHP implementation multi process must install, the extended installation steps are now written below.
One or two kinds of installation methods
1, recompile PHP's back configrue hint plus? enable-pcntl.2, do not
Want to use the APC cache in the end how the effect, helpless in Windows can not find the appropriate version of the Php-apc.dll extension file, had to be in Linux
installed, without the source mode installation, direct Yum on the line:To install
iscuz! URL static functionality by the Forum Server environment constraints, before you turn on this feature, according to your WEB server environment, select the appropriate environment configuration method. Incorrect settings may cause the server
Before you store the user information in the PHP session, you must first start the conversation.
Note: the Session_Start () function must precede the label:
The code is as follows
Copy Code
on
Face code
Use regular filter HTML tags
The code is as follows
Copy Code
$html _body = "www.111cn.net";Preg_replace ("/(]*>)/e ","' \1 '. Strtoupper (' \2 ')." \3 ' ",$html _body);
Using PHP tutorial with function
Class Cart{/*** Function Name: AddItem* Function function: Add product* Input parameters: $data-------------product Array* Function return value: None* Other Description: Because the data is recorded in the session, so do not return*/function
5 ways to make you a master of PHP development
Foreign well-known Webmaster blog developer Guide Developertutorials.com published a "5 ways to make you a master of PHP development," the author of a simple translation, there are errors please
A large number of array sorting functions are introduced in php. Next we will introduce the usage of php array sorting. The sort () function is used to sort array units from low to high.The rsort () function is used to sort array units from high to
PHP Smarty template-what is Smarty?Smarty is a PHP template engine written using PHP. It is one of the most famous PHP template engines in the industry. It points Smarty of phpApart from logical code and external content, it provides an
It mainly describes some of the shopping cart code and demonstrates the php Tutorial code for session operations.//// Add_item.php:// Add an item to the shopping cart.//Session_start ();If (session_is_registered ('cart ')){Session_register ('cart ');
This article does not discuss session or cookie. Many websites now talk about cookie-based session. The advantages and disadvantages of cookie-based session are discussed below:Advantages:1. Reduce the pressure on the server. For example, PHP
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