Copy CodeThe code is as follows:
/*** Viewer Mode** Defines a one-to-many dependency between objects so that all objects that depend on it are notified and automatically refreshed when the state of an object changes* Ability to conveniently
An agent refers to a role acting on behalf of another role, as in life, a wine manufacturer who is not directly selling wine to retail customers is through an agent to complete his sales business. and customers, do not need to drink red wine
Copy CodeThe code is as follows:
# Execution format without parametersPHP installation directory/bin/php scriptname.php# Execution format with parametersPHP installation directory/bin/php scriptname.php [parameter 1] [parameter 2] .....Access
Curl (), file_get_contents (), snoopy.class.php these three remote pages to fetch or capture the tools used, the default is still invaded by snoopy.class.php, because he is more efficient and does not require server-specific configuration support,
1. Test method Www.xxx.com/test.php?c
Copy the Code code as follows:
$content _id = Array ();//1. Create an array $content _id[] = $_get[' ContentID ');//2. The ID of the docking is inserted into the array if (Isset ($_ cookie[' content_id '))//
Copy CodeThe code is as follows:
/* Function Array_walk (): Single array callback function---Apply user function to each member of the arrays * 1, Syntax: bool Array_walk (array &array, callback funcname [, Mixed $userdata]) * 2, Description:
Copy CodeThe code is as follows:
/* Declaration of Class* 1. What are you going to develop, determine what class to write* 2. Members of the class must belong to this class* [modifier class's Keywords] class class name {* Member Properties:*
1. Log into the system with the system administrator.
2. Stop the MySQL service.
3. Go to the Command window and enter the MySQL installation directory, for example, my installation directory is c:mysql, enter C:mysqlbin
4. Skip permission Check to
To illustrate:
In the Windows environment: Originally in the php4.3.0 running a normal program, in 4.3.1 why many error, the general tip is: notice:undefined varialbe: variable name.
For example, the following code:
Copy the Code code as
/path/to/pkphp.com/script.php?ajax
Use the following method in the PHP script to determine:
Copy the Code code as follows:
if (Isset ($_get[' ajax ')) {... This is an AJAX request, and then ...}else {... This is not an AJAX request, and then
The code for the operation is as follows:
Copy the Code code as follows:
$USR = new User ();echo Json_encode ($USR);?>
Very simple code, no Chinese situation everything is normal, the output is as follows:
{"PlatformID": "123213", "UserID": "102
Code optimization
Copy the Code code as follows:
for ($i =0; $i Array_push ($week, $arr);}
Copy the Code code as follows:
for ($i =0; $i $week []= $arr [$i];}So there's no extra burden on the calling function.
The advantages and
Configuring the Environment
System: Win7
PHP Version: 5.3.x
MYSQL version: 5.0.27
apache:2.2.4 (WIN32)
Setup method:
Open D:\wamp\bin\apache\Apache2.2.17\conf\httpd.conf
At the end of the add
Namevirtualhost *:80
DocumentRoot "D:\wamp\www\bbs"
Take a look at the code:
Copy the Code code as follows:
echo "(1) The IP address of the user browsing the current page is:";echo $_server[' REMOTE_ADDR '];echo "";echo "(2) the IP address of the user browsing the current page is:";echo getenv ('
How to accurately control and judge a "small problem" in PHP, the following is a book excerpt from the statement.
Copy the Code code as follows:
$filename = "Html/cache.txt";$contents = "I am Zhang Bin";if (is_writable ($filename)) {if
Download the configuration file you need to install first.
1, apache-2.2.16
2, Php-5.2.14-win32
One, Apache configuration
Apache installation does not say, the installation process to choose the location you want to install, all the way next, you
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