This article describes the use of the timestamp function strtotime () in PHP and the need for a friend to refer to below.Strtotime function is a very good function, flexible use of it, will give you a lot of convenience in the work. But the PHP
Write a static cache using PHP to improve the speed of the site's code, the need for friends, you can refer to the next.One, the following code requirements: 1. The system supports PHP 2. Support File_get_contents file_put_contents [can also be
To turn numbers into Chinese charactersWrote one of his own
function Number2chinese ($num, $m = 1) {
Switch ($m) {
Case 0:
$CNum = Array (
Array (' 0 ', ' one ', ' II ', ' three ', ' establishments ', ' Wu ', ' Lu ', '
Four-Step optimization scheme to improve website conversion rate After the completion of Web site development, our most critical issue in website optimization is how to improve the overall conversion rate, which is one of the most important aspects
!--?
/*
get extension of file
usage: getfiletype ($filename)
*/
Function Getfiletype ($Filename) {
if (Substr_count ($Filename, ".") = = 0) {//Check the file name for a. Number.
/**
* Short Connection generation algorithm
* site:bbs.it-home.org
*/
Class Short_url {
#字符表
public static $charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static function
This article introduces, a copy of the face test for PHP programmers, with detailed answers, belongs to the basic theory-based content, the need for friends, refer to it.1. What does PHP mean? A: PHP is a script language based on the server to
For everyone to introduce a PHP call WebService example, query QQ users online, have the need for friends, you can refer to the next.Example, PHP developed by the client program called WebService.
' UTF-8 '); $client = new SoapClient ("http://
/**
* Get all files in current directory and sub-directory
* @param string $dir path name
* @return Array of paths for all files in array
*/
function Get_files1 ($dir) {
$files = Array ();
if (!is_dir
Convert URLs to static URLs
function Url_rewrite ($file, $params = Array (), $html = "", $rewrite = True)
{
if ($rewrite) {//development phase is not rewrite, where the development of the time, put $rewrite = False
$url = ($file =
This article describes the following, Smarty template engine, generate static pages of the key code, with the need for friends, refer to the next bar.In Smarty, there is a method fetch () that gets the template page content, and it declares the
This article describes a class of PHP operations Access database, with the need for a friend reference.The code is as follows:
GetList ("Select TOP 5 * from ' Result ' WHERE ' Resultno ' num_rows ("Upda Te ' Conner ' set ' connerip ' = ' 222.35.
/**
* Session MySQL Memory table
@Usage: Use some other storage method (MySQL or memcache) instead of PHP Sessoin
@author: Lein
@Version: 1.2
*/
Session_Start ();
if (!isset ($_session[' test ')) {
$_session['
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