/*
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 =
/**
* Automatic loading of related class library files
*/
function __autoload ($classname) {
if (substr ($classname, -6) = = "Action") {
Include App_path. ' controllers/'. $classname. Class.php ';
}elseif
Date_default_timezone_set ("Asia/hong_kong");
$time 1 = strtotime (Date ("y-m-d h:i:s")); The current system time
$time 2 = strtotime ("2013-2-10 17:10:00"); The time of the holiday
$time 3 = strtotime ("2013-1-1"); 2013 New Year's
To learn PHP when not to approach the algorithm. is afraid to disturb their thoughts, now it is really the same thing to review. Hey! Have you encountered such a situation? Ha
#冒泡排序法
$arr = Array ( 12,45,89,3,24,55,223,76,22,
After installing and configuring the complete Apache2.2 and PHP 5.2.14, the Apache 2 Test Page is first launched with HTTPD and has the following hints: This page is used to Test the proper operation of the Apache HTTP Server after it had been
$now = Mktime (0,0,0,date ("M"), Date ("D"), Date ("Y"));
echo "Now is". Date ("y/m/d", $now);
Copy CodeDisplaying results: Now was 2012/05/30 obviously this is not the result I want. Then, according to the old thinking, take for
First time share, let everybody step on
@charset "Utf-8";
*{padding:0;margin:0;}
. page {
font-size:14px;
Text-align:center
}
. Page Ul{list-style-type:none;display:table;margin-left:auto;margin-right:auto}
/**
* PHP Age Calculation function
*
* Parameters support array parameter and standard Mysql date type parameter
* Params sample
* -----------------
$BIRTHARR = Array (
' Year ' = ' 2000 ',
' Month ' = ' 11 ',
Set_include_path ('/xampp/htdocs/test/include '); Please note that the '/' in PHP does not represent the root directory of the Web site, but the drive letter where the file is located, using echo realpath ('/');
If the PHP version is too low,
PHP's require () and include () are not very different in terms of performance. The only difference is that the file is read and evaluated every time the include () executes, and require () executes the file only once (in fact, the file contents
Require ' command/config.php ';
Require ' command/app.php ';
App::run ($config);
?>
Copy CodeLoad the system configuration file and then load the system configuration through the engine.Second, the engine
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