A simple example of writing elfinder, extracting key member methodsThe implementation features are:Implement multi-file copy or move operations Note: In order to facilitate the test, some judgments have been made simple treatment. And in the
/** * Lunar Calendar The profound lunar calendar * Raw data and algorithmic ideas from S&s Lab http://www.focus-2000.com Unfortunately, the site seems to be closed. */ /* The number of days of the lunar month. Each element is one year. The data in
PHP analog post submission data, a lot of useful, can be used for site collection, landing and so on
Log in as a program login as an example
function Bbslogin ($user _login, $password, $host, $port = "80") {
Post
MySQL import and export the entire database as a file
When using, be sure to note whether it is in the import state, if it is an import operation, you must first back up the database, otherwise the data will be emptied.
/*
Get month date based on week
/**
* Get month date based on week
* @param int $weenNum Week 0-6
* @return Array $days returns the date
*/
Public Function Getdatebyweek ($weekNum, $month, $year)
{
PHP exports data to the Execl file format
?
session_start ();
$sql _excel= "";
if (Isset ($_session["Excel"]))
{
$sql _excel=$_session["Excel"];
}
unset ($_session["Excel"]);
$conn =mysql_connect
Class Gb2utf8
{
var $gb; GB2312 string to convert
var $utf 8; Converted UTF8 String
var $CodeTable; An array of GB2312 code files used in the conversion process
var $ErrorMsg; Error messages during the conversion process
echo "Hello from the CLI";
?>
Copy CodeNow, try running the program at a command-line prompt by invoking the CLI executable and providing the script's file name: #php phphello.php output Hello from the CLIUsing standard inputs and
PHP Two-dimensional array application example-based on the condition of the data, if the array $point_arr (below), please take out user_id = 3 of the row array.PHP Two-dimensional array application example-based on the condition of the data, if the
'**************************************************
' Function name: showpage
' Function: Show "previous page next page" and other information
' parameter: sfilename----link Address
' Totalnumber----Total quantity
'
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