About the exception that occurs when you read an entire file by using file break error reprint I haven't tried, but it's best to read the file. _php Tutorial

Source: Internet
Author: User
About the exception-breaking error when you read the entire file using file ()! I am now using PHP 4.03pl1 to read the entire file using file () when manipulating the text data file, and then display the code as follows: On my machine is completely normal, but I uploaded to the server found that the original row of data is displayed as 2 rows, originally a total of 10 rows of data, the results are displayed as 15 rows! It turns out that in some versions of PHP (less than php4.0.0), the string of this method cannot exceed 8,190 characters, and I found the same explanation in the feedback for php.net about file () in the English text as follows: in PHP 4.0.0 and lower, Array elements is never longer than 8190 characters. Longer lines is split. This limitation is removed in PHP 4.0.1

http://www.bkjia.com/PHPjc/531785.html www.bkjia.com true http://www.bkjia.com/PHPjc/531785.html techarticle about the exception-breaking error when you read the entire file using file ()! I am now using PHP 4.03pl1 to read the entire file using file () When working with text data files, and then ...

  • Related Article

    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.