[UPHPU] PHP parser
Aaron Luman
aaron.luman at gmail.com
Mon Oct 5 13:35:14 MDT 2009
On Oct 2, 2009, at 9:58 PM, Wade Preston Shearer wrote:
>
> If you can give us an example of what you're trying to do we will be
> able to give you a better recommendation.
The source code looks like:
*Stuff that I don't care about*
<h3>START_KEYWORD</h3>
<table class="class_x">*stuff that gets evaluated</table> 99.9% of the
file is here
<p id="END_KEYWORD">
*Stuff that I don't care about*
---
I decided to forgo the 'elegant' method and got it working on a few
test files. I got it so that it loads the entire contents of the form
submit into a string and then makes its way through that string. It
creates a new string with each <table class="class_x"> that it sends
to an evaluation method. The values that I am looking for get found
and redisplayed on the results page.
The current problem is that when i went to test it on the full source
something goes wrong. By something going wrong I mean that the php
engine dies. There are roughly 5.4 million characters between my
start and end points, so I am fairly certain that it is a matter of
size. It stops working on text files of about 3.8 million
characters. Aside from forcing the user to cut the source code, what
options do I have?
I looked at allowing for a file upload, but it seems as though there
is a native file size limit of 2 mb?
Any suggestions as to which direction i should go with this would be
greatly appreciated.
Aaron
More information about the UPHPU
mailing list