When Echo $ Showtime = date ("Y-m-d h: I: s") is used to obtain the system time today, it is found that the obtained time is inconsistent with the system time.
After some research, we found that the default time set by PHP is based on Greenwich
Smarty
Smarty is characterized by compiling templates into PHP scripts and then executing these scripts. Fast and flexible.
Heyes template classA very easy-to-use, but powerful and fast template engine that helps you move the page layout and
For example, this webpage
Http://www.jb51.net/soft.php/1,100,8630.html
In fact, the soft. php parameter is 1,100,863 0.
Equivalent to soft. php? A = 1 & B = 1 = 100 & C = 8630, but such a URL is too hard to remember. Search engines do not like
Beauw.php, a useful PHP formatting ToolHttp://www.bierkandt.org/beautify/Http://pear.php.net/package/PHP_Beautifier/download
New people in the group recently, theyCodeIt seems uncomfortable when it is not very standard.
This tool is really easy to
A. php file, includingProgramStart character (), specificCodeIt is placed between the start and end. In order to facilitate future modification and program reading, traditionally, code should be divided according to certain regulations, while PHP
Modify the php. ini configuration file, which is in the C: \ Windows directory by default.
Safe Mode
The safe_mode function of PHP limits or disables many functions, which can solve PHP security problems to a great extent. In the safe mode
1. generate random string functions
CopyCode The Code is as follows: function random ($ length ){
$ Hash = @#@#;
$ Chars =@# abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz @#;
$ Max = strlen ($ chars)-1;
Mt_srand (double) microtime
// Send an email to the specified email address. Subject indicates the subject and message indicates the mail content. The additional option additional_headers can be omitted, indicating the header of other mail documents.
Bool mail (string to,
A recent project needs to use SMTP to send emails. The previous library class does not exist, and it is too complicated to install pear or use the net/SMTP class of pear. The core is extracted from discuz and slightly modified.
Find the SMTP
Snoopy is used in magpierss, which makes me a little interested in studying this. On SF, find this
Source code . It is actually a class, but don't smile. It is very powerful.
I translated the official introduction (Khan... Recently, I have
Well, you may want to know why you want to use fasttemplates.
· You can change the appearance of your entire site in seconds· AbstractionProgramDesign, no spam htmlCode · Designers do not need to care about all the "fuzzy" code· Surprisingly
Save the following as test. asp
CopyCode The Code is as follows: $ Mysql_server_name = "localhost ";
$ Mysql_username = "root ";
$ Mysql_password = "password ";
$ Mysql_database = "phpzr ";//?? Why ??
$ Conn = mysql_connect ($ mysql_server_name,
Subscript: The identifier of an array, that is, the code of a string or integer in the array.
Several index values in the array are called dimension arrays.Index value: an index is a structure that sorts the values of one or more columns in a
1. Basic Syntax:
Echo "Buy a VM and find a bad wolf! Www.winshell.cn \ n ";// Here is the content to be written by PHP! "\ N" indicates a line break ";" indicates adding more lines to the end. No error is returned.
2. program execution:Programs
Three main features of an object
Object behavior: You can perform operations on the object. If you turn on the light, turning off the light is behavior.
Object form: How the object responds, colors, dimensions, and shapes are applied.
Object
Regular Expression
There are two sets of regular expression function libraries in PHP. The two functions are similar, but the execution efficiency is slightly different:One set is provided by the PCRE (Perl Compatible Regular Expression) Library.
First, we will introduce how to query data by passing values in a form.
Task target: Enter the Department name in the form to query the personnel information of the corresponding department.
Create a search. php file first.
Step 1: Insert a
Careful friends must have noticed that there was such a section in the topic of passing parameters between the last PHP pages.
Program:
I used post for the method, but why not use the get method?
First, let's take a look at the difference
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