Prepare the software first:
One, install Apache, configure the success of a common Web server
To run the downloaded "Apache_2.0.55-win32-x86-no_ssl.msi", the following interface appears:
screen.width*0.7) {this.resized=true;
Class Email {
---setting global variables
var $mailTo = ""; Recipient
var $mailCC = ""; Cc
var $mailBCC = ""; Secret CC
var $mailFrom = ""; Sender
var $mailSubject = ""; Theme
var $mailText = ""; Text-Formatted letter body
var $mailHTML = "";
First page Php/mysql Introduction
You should have heard of open source software (OSS) unless you have been living on Mars for the last 6-8 months. The movement has a huge impact and has attracted the attention of some big companies. Like Oralce,
Use sock technology to send email without server support. Fast speed!!
Copy CodeThe code is as follows:
function Send_mail ($to, $subject, $body)
{
SMTP information can be modified to your,//////////
$loc _host = "Longbill"; The name of the
Ext.: coolcode.cn
Typically, our web page specifies a coded character set, such as GB2312, UTF-8, iso-8859-1, and so on, so that we can display the text we specify on the page. However, we are likely to encounter this situation, that is, we may want
Grammar
String strings can be defined in three ways
"(single quote)" "(double quotation mark)
The escape sequence can be interpreted as \ \ \
The biggest feature of double quotes is that variable names are replaced by variable values
Delimiter
Instead, a large section of "in your email, please send us the entire code displayed below" Google terms_of_service error message. It seems that the original interface has failed.
But I installed in the Firefox toolbar extension searchstatus still
1. Variables cannot be passed between pages
Get,post,session Automatic global variables are turned off in the latest PHP version, so the variables to be submitted from the previous page are obtained using $_get[' foo '],$_post[' foo '],$_session['
XML parsing error: XML processing directives are not at the beginning of an entity
Location: Http://.../public/xml/get
Line: 2, column: 1:
^
After careful examination, it was found that the first act was empty. Looking for a long time not to find
(1) All data should be hidden inside the class in which it resides.
(2) The consumer of a class must depend on the common interface of the class, but the class cannot rely on its consumer.
(3) Minimize the message in the class's protocol.
(4)
Preg_grep
(PHP 4, PHP 5)
Preg_grep--Returns the array unit that matches the pattern
Description
Array Preg_grep (string pattern, array input [, int flags])
Preg_grep () returns an array that includes cells in the input array that match the given
Step one: Download the PHP 5.2 for Windows installation package and unzip to C:\php. Note that this decompression directory can be under any disk, however the directory name cannot contain spaces;
Here is the file directory for php5.2:
c:\php
--dev
Output the information page about PHP and current instructions
int phpinfo (void)
Returns the current PHP version number
String phpversion (void)
Print out a list of people who contributed to this PHP project
String phpcredits (void)
You can turn
And the data is the HTML code string, such as this:
Zhang San commented on a long list of articles shared by John Doe
Interception is to intercept the DIV tag inside the thing, and to keep the HTML tag, just to do the text in the processing. For
Serialization (serializing)
While PHP does not support persistent objects, permanent objects in OOP are objects that can hold state and functionality in references to multiple apps, which means having the ability to save objects to a file or
JqpieThis is an AJAX framework that extends from jquery, in conjunction with PHP. Supports xml,html and JSON handler. The features offered by Jqpie include:Simplify requests and process data from PHP using the $.getjson method.Use $. (Element). The
Definition of a variable
Types of ⚑ variables
Use of ⚑ variables
Variables are objects that can be constantly changed in memory, we can think of memory as a street, there are many households in the street, each tenant will have their own house
To the online search for the previous solution, most of them said to modify the php.ini in the upload_max_filesize, but after the modification of this, or prompt this question, but phpmyadmin in the prompt this question, the right corner has a line
Merging arrays has three functions:
1.array_combine ()
carries two parameter array, the value of the parameter array one as the key of the new array, and the value of the parameter array two as the value of the new array. Very simple.
Example:
PHP Overview:
PHP is a hypertext preprocessor (hypertext preprocessor) abbreviation, is a server-side, cross-platform, HTML embedded scripting language, its unique syntax mixed with the C language, the Java language and the characteristics of 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