I have not tried to repost the exception line error when reading the entire file using file, but it is best to read the file...

Source: Internet
Author: User

The exception Line Error occurred when reading the entire file using file! I now use php 4.03pl1 on the local machine to read the entire file using file () during operations on text data files. The Code is as follows: It is completely normal on my machine, but when I uploaded the data to the server, I found that the data in the current row was displayed as two rows. There were 10 rows in total, and the result was displayed as 15 rows! The result shows that in some versions of php (less than php4.0.0), the string of this method cannot exceed 8190 characters () in PHP 4.0.0 and lower, array elements are never longer than 8190 characters. longer lines are split. this limitation was removed in PHP 4.0.1

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.