ThinkPHP built-in template engine usage summary. The built-in ThinkPHP template engine is an innovative XML compilation template engine. the following uses a case to share the usage of common template labels of the built-in ThinkPHP template engine,
Share The smarty video tutorial. The following is a specific example of the smarty video tutorial. if you need it, you can see it. The smarty template is described in great detail. The author roughly looks at the Directory, this is a detailed
Phpsnoopy collection class introduction. Snoopy is a php class used to simulate some simple functions of the browser. it can obtain webpage content and send forms. To run Snoopy correctly, your server's PHP version is later than 4. Snoopy is a php
PHP merges arrays + and array_merge. You can use + or array_merge to merge two arrays in PHP, but the two arrays are different, A clear understanding of the differences between the two processing methods is very necessary for rapid development of
Call_user_func and call_user_func_array functions are parsed. Today, by accident, I again saw the call_user_func_array () function in php in the official CodeIgniter document. I also encountered this function in the discuz Forum code last year,
Php filters string functions. Share a php string filter function with the following code: functionStripHTML ($ string) {$ patternarray (script [^] *?. *? Scriptsi, style [^] *?. *? Stylesi, [!] *? [^] *? Si shares a php string filter function with
The StringFunctions function in PHP is a summary. Php string processing functions are all built-in php string processing functions. Addcslashes-add the backslash escape character addslashes-php string processing function for some characters in the
Php uses the filter function to verify the mailbox, url, and IP address. In php programs, regular expressions are generally used to verify email addresses, IP addresses, and URLs. In fact, some built-in validation rules are provided in php. The
Php pushes an element to the array header (array_unshift usage ). In php, the array_push function is commonly used to add elements to an array, that is, the array's inbound stack operation. However, this function adds elements to the end of the
PHP numeric judgment function. PHP code for judging several commonly used numbers, including double precision, integers, and characters. Is TITLEHEADBODY a commonly used numeric judgment function of HTMLHEADTITLE? Code used to judge several common
Php bubble sorting. After such a long time of contact with php, three sorting methods were used: Bubble sorting, fast sorting, and barrel sorting. today we will learn about bubble sorting: So what is bubble sorting, just as the gas in the river has
Php double-click table to modify the content through ajax. Copy the code as follows: scripttypetextjavascript $ (function () {$ (td ). dblclick (function () {obtain the tag vartd $ (this); varitemidtd [0]. id; vartxttd. text (); var
The code is as
Php calls the google interface to generate a QR code example. Copy the code as follows :? Php $ dataisset ($ _ GET [t])? $ _ GET [t]: www.XXX.com; $ sizeisset ($ _ GET [size])? $ _ GET [size]: 150x150; $ logoisset ($ _ GET [logo]
The code is as
Description of any PHPinclude file or URL. In practice, write a simple php file and include a js file. after the file is executed, no error or warning information is reported. at the same time, the content of the file containing js is printed.
PHP judges that the array is one-dimensional two-dimensional or several-dimensional. You can determine whether it is a one-dimensional, two-dimensional, or several-dimensional array: functiongetmaxdim ($ arr) {if (! Is_array ($ arr) {return0;} else {
PHP variable application. Sometimes variable names bring great convenience to programming. That is to say, the variable name can be dynamically named and used. Generally, variables are named using the following statement :? Php $ a sometimes
Php uses curl to capture Sina Weibo content samples. Many people like DIY Weibo on their websites, so I also wrote one. Here, we captured the Weibo show address in the Sina Weibo tool. Copy the code as follows :? Phpset_t many people like to DIY
Upload the avatar without any redirection on the interface. php + js. There are many ways to upload an avatar without navigation on the interface. I use an iframe. The following code is used directly. Html: route is the backend interface
Use PHPexcel in Yii to obtain data in excel. 1. The view code is as follows: formnamefrmBatchSettleactionmethodpostenctypemultipartform-data Select the EXCEL file inputtypefilenamebat 1. The view code is as follows:
2. the controller code is as
On windows Server, check whether PHPSSL is enabled and how to enable SSL. I. check whether the server has enabled the SSL copy code as follows :? Phpphpinfo ();? Check the openssl column on the page. if the OpenSSLsupport value of this column is
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