In Windows, how does Apache2 resolve different directories for different domain names? for more information, see configure the environment.
System: win7
PHP version: 5.3.x
MYSQL version: 5.0.27
Apache: 2.2.4 (Win32)
Setting method:
Open D: \
When PHP is running, different prompts will be given for errors with different severity levels. here is a brief introduction to help users who need it.
During PHP running, different prompts are given for errors with different severity levels.
Eg:
This article provides a detailed analysis of the example of using the header function to set HTTP headers in PHP. For more information, see the following:
The code is as follows:
// Define the encodingHeader ('content-Type: text/html; charset =
For details about how to operate mysql functions in PHP, the code for implementing the interaction functions between mysql and php can be referred by anyone who needs them.
1. establish and close the connection1) mysql_connect ()
Resource
When declaring a member attribute in a class, there must be a modifier before it. when you are not sure which word to use, use var or public to save only one class, and the file name contains the class name.
The code is as follows:
/* Class
This article provides a detailed analysis of apache's virtual host configuration method. For more information, see
1. open the vhost configuration in the apache configuration file.LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include
This article provides a detailed analysis of CodeIgniter in php. For more information about how to use the database, see config/autoload. php automatically loads $ autoload ['libraries'] = array ('database ');
Some common functions
Select Data$
The thumbnail generation function in php is very simple. it only calls several GD system functions, but it is very useful for array getimagesize (string $ filename [, array & $ imageinfo]) to get the image size.
Resource imagecreatetruecolor (int $
This article provides a detailed analysis of thinkphp multi-tables and transactions. For more information, see the following:
The code is as follows:
Function makeAcquire ($ nUsers, $ nAwards){ // Update the database$ TranDb = new Model ();$
Function array_map (): Multi-array callback function-calls the callback function to the unit of the given array.
The code is as follows:
/* Function array_map (): Multi-array callback function-calls the callback function to the unit of the given
This article provides a detailed analysis of PHP multi-process parallel execution scripts. For more information, see this article because php processes do not support multithreading, in some scenarios, you can use php to implement multi-process to
Description of the conversion function of PHPmb_convert_encoding text encoding. you can convert the character to gbk or utf8 format. Text Encoding conversion mb_convert_encoding ()
Mb_convert_encoding ($ str, $ encoding1, $ encoding2)
$ Str:
This article provides a detailed analysis of the differences between const and define in php. For more information, see 1. use const for class member variable definition, once defined, the value cannot be changed. Define defines global constants
This article is to compile and install xcacheforphp5.3 ubuntu under the operation of a detailed analysis of the introduction, need a friend to refer to the wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
Sudo tar-xzvf xcache-1.
This article provides a detailed analysis of the configuration and use of xcache. For more information, see
1. install Xcache
The code is as follows:
# Wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz# Tar zxvf
This article provides a detailed analysis of php's unlimited classification and support for output tree charts. For more information, see
The code is as follows:
/*** A common tree class can generate any tree structure*/Class tree{/*** The
Today, I met another PHP reminder: Notice: Tryingtogetpropertyofnon-objectproblem. this kind of error is very common. I actually called a zend database access method and used the fetchAll method, however, because this record is not found in the
This article provides a detailed analysis of the steps for using the 360 Universal php protection code. For more information, see 360, in fact, phpcms was initially used to protect security. now it seems that you can join any website with
Summary of PHP code specifications
Naming rulesAll the hosts files are suffixed with. class. php. They are named by the camper method and capitalized, for example, Pay. class. php;
The category class name and the Directory _ file name are consistent.
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