!--? PHP
/*
*
* Function function: Calculates two dates in YYYY-MM-DD format, a few days apart
*
*/
function Getchabetweentwodate ($date 1, $date 2) {
$Date _list_a1=explode ("-",
Echo '
;
Copy Code2. On a PHP page or HTML page
Copy CodeSecond, use the header function in the Controller or page:
Header ("content-type:text/html; Charset=utf-8 ");
Copy CodePHP
Page title
Hello!
Copy CodeUse IE browser to open this page of the website. As you can see, the page appears normal. In IE, under the "View"/"Encode" menu, see (tick "
This article introduces the functions of escaping special characters commonly used in PHP MySQL programming, including the use of mysql_escape_string and addslashes functions, as required by the friend reference.
PHP MySQL escape function
mkdir ('./aa/', 0777);
Copy CodeAnalysis and test results: The 1,mkdir function specifies a directory permission that is less than or equal to the default permissions set by the system umask. such as the Linux default Umask general 0022, that
What is PHP?PHP is an abbreviation for hypertextpreprocessor, and the PHP scripting language is an embedded HTML. PHP syntax is a unique mix of the C, Java, Perl, and PHP types of the new syntax. The purpose of this language is to allow web
Cp/usr/local/php/etc/php-fpm.conf.default->/usr/local/php/etc/php-fpm.conf
Copy CodeVi/usr/local/php/etc/php-fpm.confMake FPM start service vi/etc/init.d/php-fpm, save
#!/bin/bash
$smarty->display (' Index.tpl ', $my _cache_id);
Copy CodeThis attribute can be used to make different caches for different $_get.Second, clear the Smarty cache clear Smarty cache is generally the following ways:
This morning I stumbled across a George Stocker article, "How to destroy programmer productivity," and a Joel Spolsky, "shoot a gun for a place." These two posts talk about the productivity of programmers, especially the patterns that reduce
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