This article provides a detailed analysis of the FTP class of PHP. For more information, see FTP as a file transfer protocol. it supports two modes, one method is called Standard (that is, Active mode), and the other is Passive (that is, PASV,
In PHP, there are four methods to output strings. The echo structure can output multiple values at a time; print () can only output one value; printf () can format the output; print_r () can output arrays, which is very beneficial for debugging. The
Php learning process control implementation code. For more information about php learning, see.
The code is as follows:
/** Process control** 1. ordered structure* 2. branch structure-condition structure-select structure* 1. single branch* //
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:
PHP supports eight basic data types. For more information about php learning, see.
Four scalar types:
Boolean(Boolean)
Integer(Integer)
Float(Float type, also knownDouble)
String(String)
Two composite types:
Array(Array)
Object(Object)
Php learning notes array traversal implementation code. For more information, see.
The code is as follows:
/* Array traversal** 1. use the for statement to traverse the array cyclically* 1. Other languages (only in this way)* 2. this method is
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 PHP curl's get, post, and cookie methods. For more information, see host service providers such as dreamhost. Php curl supports FTP, FTPS, http htpps scp sftp tftp telnet dict file and LDAP. Curl supports
This article provides a detailed analysis of the use of unset global variables in php. For more information about how to use the unset global variables in PHP, you can only destroy local variables, global variables cannot be implemented. Next we
Chapter 4 data processing-php regular expression-Zheng AQI (continued). For more information about learning php regular expressions, see. Php regular expressions are good applications.
1. basic knowledge of regular expressionsMeaning: string mode
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 the differences between empty () and isset () in php. if you need a friend to write a page program using php, I often use the variable processing function to determine whether the value of a variable at
This article provides a detailed analysis of empty function output. For more information, see $ a = '';
Echo '1. --------------- '. empty ($ ).'
';
$ A = '0 ';
Echo '2. --------------- '. empty ($ ).'
';
$ A = 0;
Echo '3. --------------- '. empty ($
This article provides a detailed analysis of the header redirection in php. For more information, see The PHP header function.
Here we only use the header function for page jump.
1. page jump code in HTML codeHTML meta refresh and redirect
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 $
The application of forms in websites can be said to be the foundation of websites. there are almost no websites without forms. let's review the usage of forms first.
Text box usage:
Among them, the input types include text, password, and so on.
Create a function that can be called to reuse the code to pass parameters to the function and interact with the variables and data in different parts of the function return value and script. from this chapter, we understand
. Create a function that
Function array_pop (): pops up the last unit of the array (output stack)
The code is as follows:
/* Function array_pop (): pops up the last unit of the array (output stack)* 1. Syntax: mixed array_pop (array & array)* 2. Description: The
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
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