[pmwiki-users] Monospace-Text and buffer size problem.

Nelson E. Ingersoll nelson.ingersoll at atmel.com
Sun Jul 22 21:14:02 CDT 2007


Patrick,

   Awesome!  Added the line

ini_set('pcre.backtrack_limit', 1000000);

to my ./local/config.php and was immediately able to see the text.  Thank you.

  Putting the text into the page as monospaced-text has the additional
benefit of loading a LOT faster than allowing PmWiki to attempt to translate
310K of potential markup instructions.   Suddenly I am starting to think I
*really* can use PmWiki as the engine for my Knowledge Base.  Color me pleased.

- Nelson

Patrick R. Michaud wrote:
> On Sun, Jul 22, 2007 at 10:58:41AM -0600, Nelson Ingersoll wrote:
>> Hello,
>>
>>   PmWiki novice here.
>>
>>   I am creating a PmWiki based knowledge base for work.  I am running
>> pmwiki-2.2.0-beta60.  Yes, I know this is the bleeding edge.  I am an
>> experienced computer engineer.  My thoughts are if not me, who?; and, if
>> not now, when?
> 
> Actually, pmwiki-2.2.0-beta isn't all that bloody at the moment --
> we're nearing a stable release.  I highly recommend that all new
> sites start with 2.2.0-beta (and I'm probably going to add a note
> to the Download and other pages to this effect, if not simply
> convert 2.2.0-beta to say "2.2.0").
> 
>>    I have a largish text file, about 311KB, which is a highly formatted
>> ASCII document.  For those in the know it is a Bachman Diagram of a
>> hierarchical database I work on/with.  I read that I can use "[@
>> ..text.. @] to display the text in the way it was written to be
>> displayed.  However, when I try to display the text all I see is a blank
>> page.
> 
> My best guess is that you're running PHP 5.2.0 or later, and that
> it's therefore running into the pcre.backtrack_limit that was
> introduced into that release.
> 
> Try adding the following to your local/config.php file and see
> if it fixes the problem:
> 
>     ini_set('pcre.backtrack_limit', 1000000);
> 
> This will allow PHP's preg_* functions to work on much larger
> strings than the default (100K).
> 
> Hope this helps,
> 
> Pm
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 

-- 
Nelson E. Ingersoll
I.T. Senior Systems Engineer
ATMEL Corporation
Colorado Springs, CO  80906
Phone: 719-540-1263
Email: nelson.ingersoll at atmel.com




More information about the pmwiki-users mailing list