Php-PHP source code

Source: Internet
Author: User
Ec (2); & nbsp; & lt ;? Php ** & nbsp; * @ name processing after collection. php & nbsp; * @ dateSatDec2202: 07: 45CST2007 & nbsp; * @ copyright Ma yongzhan (MyZ) & nbsp; * @ author ma yongzhan (MyZ) & nbsp; * @ linkblog.111cn. netma script ec (2); script


/**
* @ Name processing after collection. php
* @ Date Sat Dec 22 02:07:45 CST 2007
* @ Copyright Ma yongzhan (MyZ)
* @ Author ma yongzhan (MyZ)
* @ Link http://blog.111cn.net/mayongzhan/
*/

// Process the collected file. I copied five books here. Which of the following is not convenient? Find it by yourself.

Header (''content-Type: text/html; charset = utf8 '');

Function writer ($ content, $ url)
{
$ Fp = fopen ($ url, ''AB '');
Fwrite ($ fp, $ content );
Fclose ($ fp );
}

// Merge the content from 1 to 136 pages. This is the best...

For ($ I = 1; I I <136; $ I ++ ){
$ Str = file_get_contents (''./myz/'''.polici.''.shtml '');
Preg_match ("/()(.*?) ()(.*?) (

)(.*?) (

)/S ", $ str, $ arr );
$ Arr [6] = preg_replace ("/(] +>. *?] +> )(.*?) ()/S "," $2 ", preg_replace ("/

|

/"," Rn ", $ arr [6]);
$ Result = "rn Jun rn ---------------------------------------------------- rn -------------------------------------------- rn ". $ I. "---------------- Ma yongzhan's directory number :". $ arr [2]. "rn Jun rn ---------------------------------------------------- rn -------------------------------------------- rn ". $ arr [6];
Writer ($ result, "./myz/all.txt ");
}
?>

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.