[Original]PHP+AJAX implementation simulation win file management system eight

This time is quite busy so paragraph for some time, today take a moment to write it, I continue to speak js.js file Rename function function edit (E,path) { var text=e.innerhtml; var et=document.createelement ("input");//This is the rewrite file

PHP to achieve the IP function [original]

2008-01-24 00:00:00 // This article by the original site: www.111cn.net Author: www.111cn.net Reprint please specify: from Www.111cn.net qq:271728967 // Get up early together suddenly see, my site someone in disgusting disorderly, in

Found the first PHP virus Php.pirus

Php. Pirus is the first discovered virus written in PHP that looks for files with the. php and. htm extensions and inserts code to call itself. This virus can only be on a server with PHP as interpreter. Accessing a Web page that is infected with it

PHP adds content to file tail

If we want to-a file we need to open it up append mode. The code below does just that. */   code is as follows copy code $text = " Test.txt "; if (file_exists ($text) && is_file ($text) {   $fh = fopen ($myFile,

PHP data cannot be inserted into an Access database

?>untitled document$_post[' username ' = $username;$_post[' admin ' = $admin;$_post[' gender ' = $gender;$_post[' address ' = $address;$_post[' hometel ' = $hometel;$_post[' hp ' = $HP;$_post[' email ' = $email;$_post[' course ' = $course;$_post['

PHP cookie usage and cross-domain example tutorial

/*Grammar:Setcookie (Name,value,expire,path,domain,secure)Name,cookie name must be filled inValue, cookie values, must writeOther writable, but to illustrate the functionExpire expiration such as: Time () +3600*24Path path such as:/root directory,

PHP Array Content Lookup code

Array([0] => Array([ID] => 6[Title] => Phoenix[Bid] => 2)[1] => Array([ID] => 5[title] => year Kang[Bid] => 2)[2] => Array([ID] => 4[Title] => Seagull[Bid] => 2)[3] => Array([ID] => 3[Title] => 111cn.net[Bid] => 1)[4] => Array([ID] => 2[title] =>

PHP matches URL Regular expression code

$str = ""; The code is as follows Copy Code $reg = "[^ "']*)) | (? [^s>]+)) [ss]*?> "; The following example is to get the domain name regular expression in the content The code is as follows

Php large file download program [http cache negotiation, Etag tag, resumable Upload]

002 $ file_path = './download/download_cn.rar ';003004 // Usage005 downFile ($ file_path );006007 // server file path, download file name (default: Server file name), permit user download method (optional by default), speed limit (automatically by

Php fsockopen forges post and get methods

// Fsocket simulate post submission$ Purl = "http: // localhost/netphp/test2.php? Uu = rrrrrrrrrrrr ";Print_r (parse_url ($ url ));Sock_post ($ purl, "uu = 55555555555555555 ");// Fsocket simulate get submissionFunction sock_get ($ url, $ query){$

Php generates excel xls documents

Method 1-use the HTTP headerAs described in MS Word, you need to format HTML/PHP pages using Excel-friendly CSS and header informationAdd to Your PHP script.Header ("Content-type: application/vnd. ms-excel ");Header ("Content-Disposition: attachment?

Efforts to accelerate PHP programs

It is very important to accelerate the display of dynamic website content. Through in-depth discussion of several PHP functions, this article proposes a solution for PHP web page compression and buffering.I. Introduce several functions that control

Three functions of date and time comparison in php

The date comparison is shown in 2011-11-11 2011-12-12. The code is as follows:Copy code Function compare_date ($ DATE1, $ DATE2){ $ STR = strtok ($ DATE1 ,"-");$ YEAR1 = $ STR;$ STR = strtok ("-");$ MON1 = $ STR;$ STR = strtok ("-");$ DAY1 = $

Php svn operations

The code is as follows:Copy code /*** * This class for execute the external program of svn* * @ Auth Seven Yang http://www.111cn.net* */Class SvnPeer{ /*** List directory entries in the repository* * @ Param string a specific project repository

Paging code is required for php development

The code is as follows:Copy code /*** Paging functions* * @ Param int $ count total number of entries* @ Param int $ perlogs number of entries displayed per page* @ Param int $ page current page number* @ Param string $ url address of the page

Php obtains the real IP address of the user.

The code is as follows:Copy code /*** Obtain the real IP address of the user. ** @ Return string*/Function real_ip (){Static $ realip = NULL; If ($ realip! = NULL ){Return $ realip;    } If (isset ($ _ SERVER )){If (isset ($ _ SERVER ['http _

Php string replacement function

String replacement can be implemented using two common functions: str_ireplace () and substr_replace ().Str_ireplace () functionReplace the string specified in the original string with the new substring. Syntax:Mixed str_ireplace (mixed search,

Php rounding function

The code is as follows:Copy code $ S = revert (100,200 );$ Pi = pi ();$ R = sqrt ($ s/$ pi );$ Qz1 = round ($ r); // rounding to get an integer$ Qz2 = ceil ($ r); // perform an integer operation in one step.$ Qz3 = floor ($ r); // rounds the

Php unlimited classification program

  The code is as follows:Copy code /////////////////// Database design and example of unlimited classification//////////////Mysql> create database db_kind;Query OK, 1 row affectedMysql> use db_kind;Database changedMysql> create table tb_kind (->

Total Pages: 12780 1 .... 10629 10630 10631 10632 10633 .... 12780 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.