Title: limit echo times ?
Last modified: August 21, 2016

---

# limit echo times ?

 *  Resolved [guy1407](https://wordpress.org/support/users/guy1407/)
 * (@guy1407)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-echo-times/)
 * 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](https://onedrive.live.com/redir?resid=579E0DF4B13A4F04!3049&authkey=!AP4ostjiof0bgwA&ithint=file%2ctxt)
 * Thanks
    Guy
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  Thread Starter [guy1407](https://wordpress.org/support/users/guy1407/)
 * (@guy1407)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-echo-times/#post-5143710)
 * 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
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-echo-times/#post-5143788)
 * 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/](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](https://wordpress.org/support/users/guy1407/)
 * (@guy1407)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-echo-times/#post-5143818)
 * 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.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [guy1407](https://wordpress.org/support/users/guy1407/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/limit-echo-times/#post-5143818)
 * Status: resolved