The previous paragraph to do micro-letter customization to share, accumulated some experience to share with you.
Step one or two is already in detail in the micro-credit developer documentation, starting with step three.
step three to parameter
A few days ago to the background of the heat network basically set up to make time for the summary of the work.
In design mode, I try to use the MVC pattern development. With Smarty control display, use case statements to control various action, and
With this article, the author does not explain the reason why he made the choice, but rather he compared the performance of PHP and Python two languages. The following is the author's original translation:
The reason why I give up PHP is the first
Ajax Needless to say, is a method of asynchronous callback!
And with the server side of the transmission way useful get or post, etc.
What I'm saying here is that when you transfer XML or JSON data,
PHP differs from other server-side languages in
Php. MVC label Syntax
After a basic introduction, we can now look at the syntax of the template tag system.Before we look at specific labels, we should define what we label as our tags. to write a label, we use the label node. The left label ()
?
Use Ob_start () in the header file when you cannot turn.
Write-defined global variables
Session_Start ();//Unable to submit data in post-add: Extract ($_post); extract ($_get); extract ($_session);
Session_register (' pt_usr_nm '),//write
Array getimagesize (string $filename [, Array & $imageinfo]) gets the image size
Resource Imagecreatetruecolor (int $x _size, int $y _size) New one true color image
Resource Imagecreatefromjpeg (string $filename) creates a new image from a JPEG file
Copy Code code as follows:
/*
* One, an overview of the array
* 1. The nature of the array: manage and manipulate a set of variables, batch processing
* 2. Composite type when array (can store multiple)
* 3. An array can store data of any
[/code]
Global $count;
$count = 1;
if (!isset ($_cookie["Visittime"])) {Setcookie ("Visittime", Date ("y-m-d h:i:s"));
Setcookie ("Visitcount", 1); echo "Welcome your first visit to the website!";
}
else{
Setcookie ("Visittime", Date ("Y-m-d,h:i:s"),
1. Access to individual charactersIn PHP, you can use a string as an array of characters to access the string directly using an array's access method. such as $str[0].Notice here that if the character is outside of the ASCII code, there is a problem
Universal Caching TechnologyData caching: The data cache described here refers to the database query cache, every time you visit the page, you will first detect the existence of the corresponding cached data, if it does not exist, connect the
The reset function points the array's internal pointer to the first cell and outputs the array.
Basic syntax
Reset (Array)
Reset () pours the array's internal pointer back into the first cell and returns the value of the first array cell.
Usage
Disk_free_space ($path);
Note: This function does not work on remote files, and the files that are checked must be accessed through the server's file system.
function of this function
This function returns the number of bytes available
PHP script blocks start with . You can place PHP script blocks anywhere in the document.
Of course, on a server that supports shorthand, you can use the. and?> to start and end script blocks.
However, in order to achieve the best compatibility, we
PHP prevents forms from being submitted repeatedly
Due to the network reason, often came out to point the Submit button, the Web page did not respond, and then click again. This will result in the background received two submissions, so that two
Problem
I am debugging PHP line by row output time, found ob_flush and flush two are invalid, through Phpinfo Basic can judge the setting of PHP.ini is normal.
Solving method
Then to see Nginx, found in the Nginx, like the following settings:
Reading large files has always been a headache for the problem, we like using PHP to read small files can be used directly to implement a variety of functions, but one to large articles will find that the common method is not normal or too long too
However, according to my experiment, if you do not delete a place, the resulting document opened in Excel, it will be an error!
Delete all strings like this: ss:expandedcolumncount= "5" on the line!
Example:
Just fill in some data, then submit,
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