PHP template engine Smarty cache usage
$ Smarty-> display ('index. tpl ', $ my_cache_id );
This feature can be used to cache different $ _ GET objects.II. clear the smarty cache there are several methods to clear the
Basic development knowledge: Php Basics
What is php?PHP is short for HypertextPreprocessor, and PHP script language is embedded in HTML. The PHP syntax is a unique mix of new c, Java, perl, and PHP syntaxes. The purpose of this language is
Practical skills of phpsmarty template engine
{Capture name = "test "}
{/Capture}
{$ Smarty. capture. test}
Note: content between {capture name = "test"} and {/capture} is stored in the
Writing pseudo-static rules in windows and linux
[Isapi_rewrite] # enable disguised static rules
Rewriterule/(%0-9%%%%.html/contents. php? W = $1 [I]
Any address starting with a number is transferred to contents.
Precautions for job hopping for programmers
1. the jump is much faster than the jump.Many people think that today's programmers are very cool and it will not take long for them to jump. However, have you ever thought about the cause. If you
Delete multiple Jsphp options
If ("confirm deletion "){
$ Num = $ _ POST ['checkbox'];
Foreach ($ num as $ v ){
$ SQL = "delete from aa where id =". $ v;
$ Aa =
Php string filter function example
Class request
{
Public function _ construct ()
{
If (! Get_magic_quotes_gpc ())
{
If (! Empty ($ _ POST ))
{
Foreach ($ _ POST as $ k =
Php prints the daffodils function code
Php daffodils function --bbs.it-home.org
Function winter ($ num)
{
If ($ num
// Define a single bit
$ Ge = $ num % 10;
Php character transcoding solves the problem of garbled data captured by Sina
Function unescape ($ str ){
$ Str = rawurldecode ($ str );
Preg_match_all ("/(? : % U. {4}) |. +/", $ str, $ r );
$ Ar = $
Usage of SplFileObject for PHP to read large files
/** Return the content of the file from row X to Row Y (php5 and php4 are supported)
* @ Param string $ filename file name
* @ Param int $ number of rows
Example of deleting an element from a php array
$ Arr = array ('A', 'B', 'C', 'D ');
Unset ($ arr [1]);
Print_r ($ arr );
?>
After unset is used, the array $ arr should compress the array to fill
Php function system | exec | passthru usage details
System ("/usr/local/bin/webalizer ");
Exec () prototype: string exec (string command [, string array [, int return_var]) The exec () function is similar to system ().
Php functions for converting Chinese characters into pinyin
Function Pinyin ($ _ String, $ _ Code = 'gb2312 ')
{
$ _ DataKey = "a | ai | an | ang | ao | ba | bai | ban | bang | bao | bei | ben | beng | bi |
Phpsocket function list
This article shares common functions in the php socket function library. if you have any friends who are studying php socket programming, refer to this document.
Php socket function library:Function name
Php Chinese character transcoding Unicode (UTF8) to GBK encoding conversion
// Php Chinese character transcoding
Class qswhU {
Var $ qswhData;
Function qswhU ($ filename = "qswhU. php "){
$ This->
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