For the Windows platform, PHP provides an installer, but the installer cannot be run directly to build a personal server platform, but must be embedded in an existing server platform, such as Windows NT under IIS or PWS under Windows, and Apache.
randimage.php
/*
+---------------------------------------------------------+
| by Bleakwind http://www.weaverdream.com
+---------------------------------------------------------+
*/
$dir = "images/";//Picture directory, note is sorted by the name
PHP and COM
If you're an adventurer and you're running PHP on a CGI, ISAPI, or Apache version of the Windows system, you can also get the COM functionality of the system. Now, the work of explaining COM (the Component Object model of Microsoft) is
7. Regular expression matching rules
7.1 Basic Pattern matching
Everything starts from the most basic. Patterns are the most basic elements of formal expressions, which are a set of characters that describe the character of a string. Patterns can
6. Some examples
Regular Expressions
Description
/([a-z]+) 1/gi
The position in which a word appears consecutively
/(w+)://([^/:]+) (:D *)? ([^# ]*)/
Resolves a URL to a protocol, domain, port, and
4. Operation priority for various operators
The operations of the same priority are left-to-right, and the operations of different priorities are higher and lower than before. The precedence of the various operators is from high to low as follows:
Source: The blog of Tao Tao
; PHP is also a constantly evolving tool, and its functionality is constantly being truncated.
; And PHP.ini's settings change can reflect a considerable change,
; It's good to study php.ini before using the new PHP
9.3.4 operator "?" The previous expression
If an expression containing a two-tuple operator appears in the ternary operator "? : "The"? " Before, you should add a pair of parentheses to the expression. For example:(x >= 0)? ×:-X;
9.3.5 Special
4.2 Single-line comment
Short annotations can be displayed in a single line and have the same indentation level as the code behind them. If a comment cannot be written in one line, it should take a block comment. There should be a blank line before
9.3.1 parentheses
In general, it is a good practice to use parentheses in expressions that contain multiple operators to avoid operator precedence. Even though the precedence of an operator might be clear to you, it may not be the case for others.
9.1 Constants
The numeric constants that are used as counter values in the For loop, except for -1,0 and 1, should not be written directly to the code.
9.2 Assigning values to variables
Avoid assigning the same value to multiple variables in a
3.1 Opening comments
All source files should have a C-style comment at the beginning that lists the class name, feature, version information, date, author, and copyright notice:
/** Class Name* function* Version* Date* Author* Copyright*/If the
8.1 Namespaces
A unique namespace prefix is always all lowercase ascii letters and is a top-level domain name, usually a com,edu,gov,mil,net,org, or an English double-character code for the identity country specified in the 1981 ISO 3166 standard.
7.1 Blank Line
Empty lines are separated by logically related code snippets to improve readability.You should always use two blank lines in the following situations:-Between two fragments (section) of a source file-Between class declaration
4.5 Documentation Comments
Document comments describe PHP classes, constructors, methods, and fields (field). Each document comment is placed in the comment delimiter/**...*/, and a comment corresponds to a class or member. The comment should
Objective:
At present, many Web sites in the news release system are using dynamic server technology to generate static HTML, the advantage is: one is to alleviate the burden of its server, and second, because of the generation of HTML static pages,
4.4 End of line comment
The comment qualifier "//" can comment out a whole line or part of a line. It is generally not used for consecutive lines of comment text, however, it can be used to comment out a contiguous number of lines of code snippets.
The annoying little semester finally finished, see the Invincible brother's
Now, there is time, and I have also written a GUI version of this exploit program, suitable for beginners to use. The program basically implements the
One, while loop
In this lesson, we will continue to go deeper, using PHP and MySQL to write some simple and useful pages. We started with the database we created yesterday, showing the data in the library, but it will be slightly polished.
First,
1: Why don't I get the variableI post data on one page to another page name, why is the output $name not get any value?
Register_global defaults to off in later versions of PHP4.2To get a variable submitted from another page:Method One: Find the
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