Maybe there is a ban on the server, but you can not process text larger than 4 MB. What to do? Does PCP work with larger files?

  • What kind of error? or guess? my rules work - thunder
  • 2
    I think if it is impossible to increase the size of the memory issued for the operation (I need to describe it more accurately), then I think it is worth reading the file in parts? - lampa
  • most likely you need to look at the algorithms. Maybe there is a file reading through concatenation done (conditional code): $ s = ""; while (! eof ($ f) {$ line = readline ($ f); $ s. = $ line;} then this will be very slow with increasing size. - KoVadim
  • Thanks to all. The point in php.ini seems really. What is not written in the answers? - glarionenko

1 answer 1

Most likely you need to podshamanit php.ini, try to increase the memory_limit and throw the error log here.