• Resolved guy1407

    (@guy1407)


    Hi there

    I use your plugin to develop a report.

    The code generates a large html file and I use the plugin to echo the php line by line.

    the problem is that the echo stops after several lines.

    To make this simple, I generated a sample with echo 1000 lines.
    It will echo only if the lines count are 797 maximum (delete lines 798 till 1000).

    Here is a link

    Thanks
    Guy

    https://ww.wp.xz.cn/plugins/insert-php/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter guy1407

    (@guy1407)

    just a note – as a final test, I replaced your plugin with “Allow PHP in Posts and Pages” and the echo is working ….

    Please kindly advise

    I’m just guessing here, Guy.

    This code works on my test site, printing 2000 numbers, each with an echo:

    [insert_php]
    for( $i=0; $i<2000; $i++ ) { echo "$i "; }
    [/insert_php]

    http://affinityseries.com/wp361/echo-limit/

    Looking at and trying your test code, I think it’s more than the plugin can gulp at one time. This warning comes up.

    Warning: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 43041 in /home/as/public_html/wp361/wp-content/plugins/insert-php/insert_php.php on line 54

    It may be prudent to use “Allow PHP in Posts and Pages,” as it’s working for you.

    Sorry I can’t be more specific.

    Will

    Thread Starter guy1407

    (@guy1407)

    Hi Will

    Thanks for the very fast reply !!!

    Currently I use another plugin (not the one I suggested above)

    Giving you a 5 star rating 🙂
    Guy

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘limit echo times ?’ is closed to new replies.