Solution to reading half of the data in a file

Source: Internet
Author: User
Half of the data read from the file is half of the data read from the file. & lt ;? Php $ fpfopen (d: wwwdxtesttest. php, r); while (! Feof ($ fp) {$ linefgets ($ fp, & nbsp; 4096); echo & nbsp; $ line ;}fclose ($ fp );? & Gt; half of data is read from the file.
Half of data is read from the file.
 $ Fp = fopen ('d: \ www \ dx \ test. php', 'r ');
While (! Feof ($ fp )){
$ Line = fgets ($ fp, 4096 );
Echo $ line;
}
Fclose ($ fp );
?>

Fopen? Fgets

Share:


------ Solution --------------------
In fact, it's not gone. you right-click to view the source code, and all the data is in it. However, it should be in The code between them is hidden. the specific reason is not clear...

------ Solution --------------------
The content of the <> package is marked by the browser and will not be displayed in the browser.

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.