/*
Second Level directory
Returns a level two directory by ID that distributes content evenly across 36*36 directories.
36 Directories for A-z0-9
*/
function Idcat ($id) {
$p 0 = $id% 1296;
$p 1 = ceil ($p 0/
Deleting a file by using a function to copy has shown whether to turn on magic references
/**
2012-4-12 丨 still rice too
* Custom addslashes function, support multi-dimension group, support automatically identify whether
Copy the folder to another place. /**
/**
* Copy Folder
Eg: copy d:/wwwroot/below WordPress to
d:/wwwroot/www/explorer/0000/del/1/
No trailing slash at the end, copy to address if the source folder name is not added,
Sina PHP Framework Pure version 1.1 (with beautiful waterfall flow template) Demo Address is called in the template56 Web open platform for video data.1, including non-advertising outside the station player;
if (! $trip =
PHP current loop is 1, loop from inside to outside increments, break default is 1, such as jumping out of the 2nd layer loop
for ($i =0; $i
foreach (Array () as $val) {
foreach (Array () as $val) {
echo "1-layer loop";
$sql 3= "CREATE temporary TABLE atmp_table (uid Int (one), Dnum int () NOT null)";
mysql_query ($sql 3);
$sql 3= "INSERT into atmp_table (uid,dnum) Select Uid,count (soid) as Dnum
from ' Cy_score2 '
where (nei= '
This article is the second part of the Php-redis Chinese document, followed by an article, continue to introduce the use of some of the official Redis command skills, the need for friends can refer to.This article is the second part of the Php-redis
This article is the fifth part of Php-redis Chinese document, the need for friends can refer to.This article is the fifth part of Php-redis Chinese document, the need for friends can refer to.Hash operations Hset$redis->hset (' h ', ' key1 ', '
Latest Version (v1.3): http://code.google.com/p/php-fetion/downloads/detail?name=phpfetion_v1.3.0.zip (July 23, 2012: Fixed a problem that can't send messages to friends, add Csrftoken field when sending messages to friends) Update please pay
!--? php
class User {
static function getinstance ()
{
if ( Self:: $instance = = NULL) {//If instance is not created yet, would create it.
self:: $instance = new User ();
}
Output every 1 seconds, implemented 1th time output. 2nd time output. 3rd time output. 4th time output. 5th time output. 6th time output. 7th time output. 8th time output. 9th time output. 10th time output. The output is complete!
Class Commaction extends Action {
Public Function __construct () {
Parent::__construct ();
$this->checkadminsession ();
}
Public Function checkadminsession () {
Set timeout to 10 points
$nowtime =
Hardware configuration of the server (including server type, CPU, hard disk speed, memory size, Nic speed, etc.)In-network environment and speed of the serverThe rate at which the server's network environment is associated with the Internet
Gets the current path of the file + filename
Echo __file__;
Echo '';
Gets the current path of the file
echo dirname (__file__);
Echo '';
Get the top level directory path of a file
Echo dirname (DirName
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