PHP sort 100 million QQ number
Eat full drink enough, also post.
Split into thousands of parts for sorting and merging.
First create a 100 million QQ number of TXT.
PHP Code
$v) { $arr = range ($v *10000+10000,10000* ($v +
Send a simple example first
Copy CodeThe code is as follows:
if (!is_dir (' txt '))//Determine if TXT is a folder directory
{
mkdir (' txt ');//Create a folder directory named txt
$open =fopen (' txt/in.txt ', ' w+ ');//Open file in read-write
$ File = "./Some faqsums related to the PHP operation file. txt ";// ======================== Determine whether the file can be read (permission problem), or whether the file does not existIf (is_readable ($ file) = false ){Echo " ";Die ('no ');}
//
The usage is very simple. You only need to include a file...
/*** Auto_cache.php implements intelligent automatic cache. * Extremely easy to use: * require 'Auto _ cache. PHP '; it's OK * @ author rains31@gmail.com * // This file does not allow
CopyCode The Code is as follows: /*
Code function: uses PHP to classify and store images by creation time;
The Image File Attribute must be removed from the read-only attribute; otherwise, it cannot be deleted.
By lost63
*/
// Delay
Delete an object
Use unlinke functions, such as unlink $ file, unlink $ file1, $ file2, $ file3
Open a file
Open the file with three parameters, which makes it easy to differentiate the mode and file name. This method is supported in Versions later
First, a simple instance is provided.
Copy codeThe Code is as follows: If (! Is_dir ('txt ') // determines whether the txt file is a folder directory.
{
Mkdir ('txt '); // create a directory named txt
$ Open = fopen ('txt/in.txt ', "w +"); // open a
Method 1:
Copy codeThe Code is as follows: /**
* Directory generation class: UtilsMakeDir
* @ Author yepeng
* @ Since 2010.3.18
*/
Class UtilsMakeDir {
// This directory is not created when the base directory is created. This should be an existing
How does Python determine whether a file or folder exists?
This article mainly describes how to determine whether a file or folder exists in Python. This article also describes how to determine whether a file or folder exists, and how to determine
Explains how to use the PHP function rmdir. In PHP, there are many functions for programming, and their functions are also very powerful. Today we will introduce to you that PHP is a type of function embedded in HTML and server in PHP. There are
The specific parsing of PHP Generic file Upload class. For example, if you can upload an exhibit and upload a thumbnail for it, the restricted type of the thumbnail file may be jpg, gif, and png, the following is a detailed explanation.For example,
File Operations in php are much simpler and more powerful than asp operations. For php learning, refer
File Operations in php are much simpler and more powerful than asp operations. For php learning, refer
First, a simple instance is
File Operations in php are much simpler and more powerful than asp operations. For php learners, refer to the following simple example:
The Code is as follows:
If (! Is_dir ('txt ') // determines whether the txt file is a folder
This article describes three methods for deleting folders in PHP. For more information, see
1. recursion
The code is as follows:
DeleteDir ($ dir){If (rmdir ($ dir) = false & is_dir ($ dir )){If ($ dp = opendir ($ dir )){While ($ file = readdir ($
Delete files in php using the unlink function. The unlink function is used to delete files in php, but we can determine whether the file has the permission to be deleted. next I will give you a brief introduction to the unlink function usage and
Copy CodeThe code is as follows:
Class HTML{var $dir; Dir for the htmls (without/)var $rootdir; Root of HTML files (without/): HTMLvar $name; HTML file storage Pathvar $dirname; The specified folder namevar $url; Gets the source page address of the
First , the directory operation is the function read from the directory, Opendir (), Readdir (), Closedir (), when using the first open the file handle, and then the iteration list:
$base _dir= "filelist/";
$
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.