1. you can use session_register to register global variables available throughout the session. For example, session_register ("name") registers a global variable $ name, which can be directly used on the PHP page, if you want to use $ name in a
Northwest Agriculture and Forestry University, my Alma Mater! Once on campus, I watched the banners "Today you are proud of your school, tomorrow the school is proud of you", and I am quietly cheering for myself. I hope this will happen. I graduated
Ubuntu web development, PHP editor recommended from: http://www.huqiang.name/2011/03/31/archives/129.html
As for the editor, I found that Zend studio has stronger functions and practicability during my study. Please discard the test content.
PHP provides powerful support for XML. It uses an XML "parser" and provides 20 (PhP4) XML parsing functions to support this parser. Below are some of the most common PHP parsing functions.1. xml_parseBoolean xml_parse (INT parser, string data, int
1. Basic knowledge points
The meaning of several status codes in http: 503,500,401,200,301,302...
Include, require, include_once, and require_once.
History of several PHP/MySQL versions, such as major improvements from mysql4.0 to 4.1 and from
Class page {// The number of pages displayed on each page in the pagination bar public $ rollpage = 6; // The parameter public $ parameter to be included in the page Jump; // The default list shows the number of rows per page. Public $ listrows = 20;
I think it is interesting to write a program in PHP to process images and make a verification code. So I wrote a simple public function library to share with you.
/* Public Functions */
/* Load the image */Function load_picture ($ PATH){$ Info =
Several MySQL statements commonly used in PHPDisplay database or table:Show databases; // you can then use database_name;Show tables;Change Table Name:Alter table table_name rename new_t;Add column:Alter table table_name add column C_n column
I saw it on the Internet and found it very practical. I turned around and continued to share it.
/**
* The PHP version automatically generates a regular order number (or number)
* Author: XueLang
* Date: 2009-8-14
* The generated format is: the
To obtain the values of multiple option boxes with the same name, and the number of check boxes is uncertain, we can use JavaScript preprocessing to solve this problem, when you click Submit, append the values of these check boxes to a hidden domain.
Speaking of this, I was even more depressed. I found N documents online. The more I read them, the more confused I was. Finally, I got my own code. To facilitate future study, remember it.
1. Download The FCKeditor multi-language edition
2.
Use date () to implementDisplay format: year-month-day hour: minute: WonderfulRelated time parameters:A-"am" or "PM"A-"am" or "PM"D-a few days, two digits. If there are less than two digits, fill in the first zero. For example, "01" to "31"D-the day
This class is not safe and needs to be modified
/*** Httpdownload** @ Author sanshiQQ: 35047205Email: sanshi0815@tom.comMSN: sanshi0815@tom.com** @ Version 1.0.0 2005/07/10** @ Deprecated1. Http download */Class httpdownload{VaR $ rootdom = "D:/JSP/"
/*String check class* @ Author sanshiQQ: 35047205Email: sanshi0815@tom.comMSN: sanshi0815@tom.com
*/Class checkbase{Function checkbase (){}/*Used to check whether the string is null* @ Param $ STR check field* @ Param $ isstr if the field may have
Document directory
Control PHP page Jump
1 page Jump set refresh on the current page
2 redirect to. php
3. Control redirection using scripts
4 Supplementary Methods
5. Script implementation
6. Execute the script. The difference is that the
The sequence of constructors in PHP:
Class test {
Public Function _ initialize (){Echo '_ initialize ';
}
Public Function _ construct (){Echo '_ construct ';}
Public Function Test (){Echo 'test ';}
Public Function _ destruct (){Echo 'destoct ';}}
$
Compile your own php extension FunctionsYorgo Sun 2002/01/22After a php program has been written for a long time, it naturally knows all the functions provided by the php program. The many functions provided by the php program are very useful, but
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