In php, $ _ request, $ _ post, and $ _ get are used to accept form data. What are the differences between them and when to use the best form data.
1. $ _ REQUEST
In php, $ _ REQUEST can be used to obtain data submitted by the POST and GET methods,
For more information about PHPOO, see The PHP Manual. I will not talk about what everyone knows. here I will only write down what is easy to forget.
Keywords and special variables
New, class, extends. Everyone knows about these three items.
:, The
Phptp verification form and auto-fill function code. For more information, see
The code is as follows:
Class FormModel extends Model {
// Automatic verification settings
/*
* 1. Automatic Verification
Automatic verification is defined as follows:
Common functions for searching strings in PHP. This section describes the use of strstr. 1. the first appearance of strstr.
String strstr (string $ haystack, mixed $ needle [, bool $ before_needle = false])
Note 1: $ haystack is the string and $
Php file annotation mark and standard summary. php developers can add them to their favorites for future use, making our code more professional.
PHP annotation mark
@ Access
Usage scope: class, function, var, define, module
Indicates the access
In actual projects or self-compiled gadgets (such as news aggregation, product price monitoring, and price comparison), data is usually obtained from the 3rd-party website or API, when you need to process a URL queue, to improve the performance, you
Just as you can see the famous saying behind the title of "chat blog", every time you refresh it, a random statement will appear. put your favorite words together and it will often appear in front of you, how can we achieve this random celebrity
Because the ftp of your website does not directly set the attributes of files in the space, you wrote a php code to modify the index. the PHP file attribute is index. after setting the read-only attribute for the PHP file, the Trojan has no
Will PHP start searching for parsing files? Php and end mark ?, Mark to tell PHP to start and stop interpreting the code, next, I will introduce in detail the use of PHP end labels. if you are interested, you can refer to this article, which may
In the configuration file, we should set the cache directory, but only one file is cached. how can we make a template have multiple cache files? you can set them in display.
$ Smarty-> display ("demo. tpl", $ _ SERVER [REQUEST_URI]) to implement
This article gives a detailed analysis of the differences between using the plus sign in php and merging arrays with array_merge. For more information, see the following.
The code is as follows:
$ R = array (1, 2, 3, 4, 5, 6 );
$ E = array (7,8,
This article gives a detailed analysis of whether an array contains a certain element in the binary search of php. if you need a friend, refer to the binary search to see if the array contains a certain element. This article is compatible with
This article provides a detailed analysis of the application of the single-sample php design mode. For more information, see
Singleton mode: simply put, an object is only responsible for a specific task.
Singleton class:1. the constructor must be
This article describes how to extract the verification code in php168_cms. For more information, see
The code is as follows:
Function yzImg ($ nmsg ){
If (function_exists ('imagecreatetruecolor ')){
$ Imstr [0] ["s"] = $ nmsg [0];
$ Imstr [1] ["s"]
This article provides a detailed analysis of how to use DES for encryption and decryption in PHP. For more information, see
DES is a standard data encryption algorithm. for details about this algorithm, refer to Wikipedia and Baidu
This article provides a detailed analysis of PHP large file downloads and resumable download solutions. For more information, see The php memory overflow problem recently exported, the reason is that the temporary files read during the download
This article provides a detailed analysis of the Proxy mode in PHP design mode. if you need a friend, refer to the Proxy mode, which is a simple handler (or pointer) is used to reference an object: this pointer is replaced by the Proxy object, the
This article provides a detailed analysis of PHP's unlimited classification methods and code. if you need a friend's reference, whether you want to build your own forum, publishing messages on your website or writing your own CMS program, you will
This article is the use of substr capture UTF-8 Chinese strings appear garbled problem for a detailed analysis of the introduction, need a friend reference we know that sometimes use substr to capture UTF-8 Chinese strings, garbled characters often
This article provides a detailed analysis of php loop jumps. For more information, see
The code is as follows:
// The Current php loop is 1, and the loop increases sequentially from the inside to the outside. the default break is 1, for example,
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