Before you start, let's mention three functions: "ob_start (), ob_end_clean (), ob_get_contents ()"
Ob_start (): it is used to open the buffer, that is, to cache the content of the static file you need to generate here;
Ob_get_contents (): Read
Using Load post in jquery and so on cannot get the desired result! So suddenly ----- I thought about things in the past few days, so now I have.
If you want to submit data to the specified page in PHP, there should be and return values.
So I found
First, we will learn how to create this object in javascr sans PT:
VaR XMLHTTP = new XMLHttpRequest ();
This line is simple
Code The XMLHTTPRequest object is created in Mozilla, Firefox, Safari, opera, and basically all non-Microsoft browsers that
First, cultivate your interest in PHP, and then learn more about PhP.
Program In fact, there are many advantages. Mainly list the following points.
PHP can do anything, such as collecting form data, generating dynamic webpages, or sending/receiving
PHP File Processing
In the application of PHP files on the server, the related scope is not only the various connection and access operations between the user and the server database, but also the file processing functions built in PHP, to process
In most cases, we specify another URL address to process the form content to the action attribute, but in some cases, we need to submit the form data to ourselves. In this case, how should we specify the action attribute value?
If (isset ($ _ post ['
HTML section:
Function postrequest (strurl ){
VaR XMLHTTP;
If (window. XMLHttpRequest) {// for Mozilla, Safari ,...
VaR XMLHTTP = new XMLHttpRequest ();
}
Else if (window. activexobject) {// for Internet Explorer
VaR XMLHTTP = new activexobject
Therefore, I think all session-related tables should be specially treated in the master-slave database design. That is, all session data tables can be updated and queried. When a user accesses the site, the user is bound to the specified database.
When a visitor leaves a message or post a message, we do not want the visitor to use HTML tags in the message or post. Therefore, when the visitor submits a message or post, I have to delete the HTML Tag, the following function is used to implement
PHP pre-defined constants:
_ File __
The script file name being processed. If it is used in an included file, its value is the included file, not the file name.
_ Line __
The current number of objects being processed.
Php_version
Indicates
CopyCode The Code is as follows: Class lightpage_template {
VaR $ tpl_header;VaR $ tpl_footer;VaR $ tpl_parsing;VaR $ tpl_template;VaR $ tpl_dirname;
VaR $ tpl_parse_string;VaR $ tpl_parse_array;
VaR $ tpl_result;
Function _ construct (){$
We are writing MIS and Web applications
Program When the system involves interaction with the database, if the database has a large amount of data, it will take up a lot of resources to retrieve all the records at a time, so we often use, the
Implementation of friendly URLs (recommended for vomiting blood)
Do you often see URLs of other sites like this?
Http://www.xxx.com/module/show/action/list/page/7
Or
The http://xx.com/module/show/action/show/id/8.shtml with an extension
Or
Http://xx.
When using a template, you may encounter the following problem: the operation is troublesome when the page information is displayed. N templates have paging blocks.
For example:
--- A total of 20 records. Go -----
When I first encountered this
Copy codeThe Code is as follows: /*
XML-RPC library from the Internet, very useful for developing small external communication interfaces
*/
Function & XML_serialize ($ data, $ level = 0, $ prior_key = NULL ){# Assumes a hash, keys are the variable
Copy codeThe Code is as follows: // define a function to call FCKeditor
Function call_fck ($ input_name, $ input_value, $ w = '000000', $ h = '000000 ')
{
Include_once 'fckeditor/fckeditor. php ';
$ Fcked = new FCKeditor ($ input_name );
$
PHP is used for implementation. If you cannot understand it, please leave a message... I believe the principles are similar ..
Why is PHP used as an example language?
There are two other factors: 1. PHP syntax is easy to understand, and people with
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