Use a Socket in PHP to send an email (3) The following is a real secret. you should check it carefully. :) --------------- mail sending and processing
The following are the real secrets. you should check them carefully. :)
-----------------------
The first type: use regular
Copy CodeThe code is as follows:
echo Preg_replace (' # # ', ' ', ' ab AB ');
Output "Abab"
?>
The second type: Using the Str_replace () function
Copy CodeThe code is as follows:
Echo str_replace (', ', ' ab AB
Use ORA to enter data into data table ' Email_info '
When the user browses the script, a form consisting of the name and email input field is displayed, and when the user clicks Submit, the script will save the name and email to the ' email_info '
The first method:Using INSERT INTO, the code is as follows:
$params = Array (' value ' = = ' 50′); set_time_limit (0); Echo date ("H:i:s"); for ($i =0; $i insert ($params);}; echo Date ("H:i:s");
The last display is: 23:25:05-01:32:05 that took
1. About Smartywhen We-doing web programming using PHP, one problem is, the PHP files can being mixed with PHP code As long as the HTML code. At some point, it's not very clean and also not safe. And the work can ' t is seperated for back-end
First, use the statement:
Copy CodeThe code is as follows: mysql_query ("SELECT Max (ID) from T1", $link);
Using this method gives the highest ID value, which is the last value, but when a multilink thread, this maximum ID is not necessarily the
This example is briefly described in the previous article.
OK, let's start with the login page of the first page.
Or look at the interface
How do you really want to guide it in the end is how to achieve it? OK, let's look at the code:
1
2
1.1 Factory mode, factory method or class generate object, not in code direct new
Class factory{ static function Getdatabase () { return new Mysql ($host, $user, $pass); } } #使用 factory::getdatabase ();
1
Seventh Day
Objective: To learn how to use a session
Session has many functions, most of which are the variable transfer between pages on the site. At the beginning of the page, we want session_start (); To enable session;Then you can use the
1. Methods Overview
First of all, write a simplest function, you can take a look at it:
HTML> head> title>hellophptitle> Head> body> function Customprint ($ for($i=0; $i Echo ($echo (customprint?> > html
Through this example, I
Using ORA to enter data into the datasheet ' Email_info '
When the user browses this script, displays a form that consists of a name, an email input field, and when the user adds a good data click Submit, the script will save the name and email to
The Seventh day study goal: learns the session the use
The role of a lot of sessions, the most use is the site within the page variable transfer. At the beginning of the page we want to session_start ();
Then you can use the session variable, for
Three ways to implement PHP at timed intervals
1. Windows Scheduled Tasks
2, the Linux script program
3, let the Web browser refresh regularly
Concrete implementation1. Windows Planning Tasks
PHP rarely run on the win server, the
Data | Database Oracle (ORACLE) is the most popular relational database in the world. It is a powerful engine of industrialization promoted by large corporations. Let's take a look at its related functions:
(1) integer ora_logon (string user,
}}Destroy parserXml_parser_free ($XP),Opening Tag Handlerfunction Elementbegin ($parser, $name, $attributes){Global $currentTag, $flag,Export the name of the current tag to the global scope$currentTag = $name,If within an item block, set a flagif
The PHP binary conversion function is as follows:Bindec ()-Binary conversion to decimalDecbin ()-Decimal converts to binaryDechex ()-Decimal conversion to hexadecimalDecoct ()-Decimal conversion to octalHexdec ()-16 Conversion to decimalOctdec
The first part of the Chinese character encoding Study Series. the PHP function is a detailed description of the conversion functions for decimal, binary, octal, and hexadecimal conversion. it mainly describes the conversion methods for each
PHP + MYSQL/Development video tutorialSolution[Img] http://www.caopeng.org/html/image/php.jpg#/img]Cao Peng PHP + MYSQLProviding popular power for network development PHP + MYSQL is the most popular dynamic combination today1. Notes[Url = http://www.
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.