PHP Ajax implementation verifies that the user name exists

The code is as follows Copy Code Registration Page error_reporting (0);Do not let PHP report the wrong language to occur. If it's not closed, there's a wrong language like this. warning:preg_match () shut down.Session_Start

The process Analysis of PHP implementing file downloading function

Process analysis of the client downloading files from the server: The browser sends a request to access a page in the server (such as: down.php), and the Code for the page is as follows.When the server receives the request, run the down.php file

PHP file read and write operation

First is a file to see whether can read (permission problem), or exist no, we can use the Is_readable function to get information.:Php/func_filesystem_is_readable.htm ">is_readable function usage The code is as follows Copy Code

Use the PHP Curl implementation program to login Sina microblog code

The code is as follows Copy Code /*** Curl Request* @param String $url Request Address* @param Array $data Request data*/function Curlrequest ($url, $data = ', $cookieFile = ') {$ch = Curl_init ();$option = Array (Curlopt_url => $url,

Picture address in regular character of PHP regular expression

The code is as follows Copy Code if (Preg_match_all ("/http://[^")]+[.jpg|. Gif|. Jpeg|. Png]+/ui ", Stripcslashes ($content), $aliurl)) {$i = 0; Multiple files + +while (the list ($key, $v) = each ($aliurl [0])) {echo $v. "

PHP Ajax Implementation No refresh detection user name is available

Objective Directly on the code is a bit unkind, so in accordance with the celestial tradition, the entire paragraph described .... (I have a limited ability to express my language, and we can endure it.) function Used when registering users on a

Time and date validation function in PHP

Date validation Format 2011-12-12 The code is as follows Copy Code function Is_date ($STR){$YEAR = "";$MONTH = "";$DAY = "";$len = strlen ($STR);$offset = 0;$i = Strpos ($str, "-", $offset);$YEAR = substr ($str, $offset, $

PHP File and directory removal program

  code is as follows copy code function Rmdirfiles ($indir)  {     $dh = Dir ($ Indir);     while ($filename = $dh->read ()) {       if ($filename = = "." | $fi Lename = = "...")        continue;       Else if (is_file

PHP Download CSS Image code

  code is as follows copy code $url = ' http://www.111cn.net '; $data = file_get_contents (' abc.css tutorial '); Preg_match ('/(. *//.*?) ', $url, $host); $host = $host [1]; if (!is_dir (' img ')) {mkdir (' img ');}

Php unlimited classification program code

Unlimited classification is like creating a folder in windows. You can create a folder in the new folder, so that there is an infinite loop. The same is true for the infinite classification. The parent class can be divided into its sub-classes,

Php allows you to obtain Baidu's indexing and snapshot code

First, let's take a look at the effect code as follows: The code is as follows:Copy code $ Domain = "www.111cn.net";/* domain name to be queried */$ Site_url = 'http: // www.baidu.com/s? Wd = site % 3A ';$ All = $ site_url. $ domain;/* all URLs

Php uses flush () ob_flush () to output strings one by one

Ob_end_clean (); // clear the output cache and disable the cache.Echo str_pad ('', 256); // output 256 bytes of space (in IE browser, the output is displayed only when more than 256 bytes are accepted.) The code is as follows:Copy code For ($ I =

Php Chinese character conversion pinyin implementation program

The code is as follows:Copy code Function Pinyin ($ _ String, $ _ Code = 'utf8') {// The GBK page can be changed to gb2312.$ _ DataKey = "a | ai | an | ang | ao | ba | bai | ban | bang | bao | bei | ben | beng | bi | bian | biao | bie | bin |

Delete a php program in a non-empty directory

  The code is as follows:Copy code Function removeDir ($ dirName){ If (! Is_dir ($ dirName ))    { Return false;    } $ Handle = @ opendir ($ dirName );While ($ file = @ readdir ($ handle ))! = False)    { If ($ file! = '.' & $ File! = '..')     

A summary of PHP escape characters

I recently encountered code conversion problems in writing bbs. After searching for a long time, we can get a perfect solution to completely restore the author's original article.The following post is for your correction.System: linux php4 oracle8i//

Five common PHP database problems (2)

A better way to do all of these things is to load the data into a database and then execute the query, such as the following query.Listing 9. Getfiles_good.phpRequire_once ("DB. php ");Function get_files ($ name){$ Rows = array ();$ Dsn = 'MySQL: //

PHP and other languages

1. PHP and ASPASP is actually not a language. It is just the abbreviation of Active Server Pages. The syntax used in ASP is actually a script version of Visual Basic. The biggest drawback is that ASP was born on Microsoft's Internet Information

Suggestions for new php users

I have been learning PHP for more than a year, no matter whether the author has any programming basics. More than a year should have reached a relatively high level. However, the landlord does not seem to have the expected level. Based on the reason,

Free php space in China

The same network strength is your confidence!From now on, DeDeCMS users will be provided with the same network host (50 MB of webpage space + 50 MB of MYSQL database) for free-3 months!Webpage space: 50 MCapacity: 100 MSupported languages:

Free php space without advertisement

300 MB available network space80 GB available bandwidth monthllyMySQL databaseEnable PHP network spaceNo file size limitAll file types are allowedFree FTP accountFree subdomains: you. phpnet. usAny requirements for forum postingNo account opening

Total Pages: 12780 1 .... 9386 9387 9388 9389 9390 .... 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.