Copy move file-PHP

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

The broad and profound lunar algorithm

/** * 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

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

Chan Cheng Loan----Only for programmer's bank loans

Chan Cheng Loan---programmer "money" "process" worry-freeLoan RequirementsAge: 22-55 years oldInterest rate: Minimum 7.8 pct (borrowing 10000, interest 78 yuan/month)Loan limit: up to 1000000.00Duration: 3 Months-10Loan Time: The fastest

A case of socket programming in PHP

Error_reporting (E_all); Set_time_limit (0); echo "TCP/IP Connection\ n "; $port = 1935; $ip = "127.0.0.1"; /* +------------------------------- * @socket connect the whole process +-----------------

PHP function to convert Chinese characters to pinyin

/*--- * Function: Convert Chinese characters to pinyin * Function: Pinyin */ function Pinyin ($_string, $_code= ' gb2312 ') { $_datakey =

Example of high-precision time generated by PHP

$start = Microtime (true); for ($i = 0; $i Preg_match ('/age=\d+/', $_server[' query_string '); } $end = Microtime (true); ?> Copy CodeSupport for using optional parameters in Microtime () has been

Get the visitor's operating system

get the visitor's operating system function Osinfo () { $os = ""; $Agent = $GLOBALS ["Http_user_agent"]; if (eregi (' win ', $Agent) && strpos ($Agent, ' up ')) {//osphp.com.cn $os = "Windows 95"; }

Collation of microtime related knowledge in PHP

Class RunTime { var $StartTime = 0; var $StopTime = 0; var $TimeSpent = 0; function Start () { $this->starttime = Microtime (); } function Stop () { $this->stoptime = Microtime (); } function spent ()

MySQL import and export the entire database as a file

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 /** * 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

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

The simplest example of PHP generating word

!--? php class word { function Start () { ob_start (); print ' xmlns:w= ' Urn:schemas-microsoft-com:office:word ' xmlns= "http://www.w3.org/TR/REC-html40" > "; }

Workaround for notice:undefined index error prompt in PHP

if (array_key_exists (' IsTrue ', $_post)) { if ($_post[' IsTrue ') { $istrue =$_post[' IsTrue ']; } }else{ $istrue = "; } Copy CodeThe following judgments can be

PHP code for GB2312 and UTF8 encoding conversion

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

PHP command line to run PHP script (with parameters) method

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

The PHP code that automatically registers the login verification mechanism

$urls = Parse_url ($db _bbsurl); $domain = $urls [' Host ']; Include_once (r_p. ' Require/admvclient.php '); $adm _oem= new Cnzz_adm_oem (); Determine if the config file has a user password Pwcache::getdata (d_p.

PHP Two-dimensional array application example-based on criteria to fetch data

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

A paging function: Display "previous Next" and so on

'************************************************** ' Function name: showpage ' Function: Show "previous page next page" and other information ' parameter: sfilename----link Address ' Totalnumber----Total quantity '

Use PHP to determine if a file exists, is readable, and whether the directory exists

$file = ' bbs.it-home.org.php '; if (is_readable ($file) = = False) { Die (' file does not exist or cannot be read '); } else { echo ' presence '; } ?> Copy CodeThe is_readable () function

Total Pages: 5208 1 .... 1738 1739 1740 1741 1742 .... 5208 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.