|
Posted by Jerry Stuckle on 11/01/07 03:58
Phil wrote:
> I should point out that I know this has something to do with the file-
> size. With a small file it works OK. With a large file it fails to the
> browser. In this case, a large file is up to 3.5GB of uncompressed
> ASCII text. There may be up to 100 files to search - I can do that
> part I think, once I get it to actually search the file! :-) Any help
> GREATLY appreciated.
>
> Probably I should mention that I am not a full-time developer ... I'm
> quite good with shell scripts, REGEX and procedural languages ... I'm
> a hacker at best with PHP :-) I'm more of a systems person.
>
> On Oct 31, 5:45 pm, Phil <phillip.corch...@gmail.com> wrote:
>> I cannot figure why this works fine at the command-line of the linux
>> server, but will not output anything to the browser, and no errors in
>> the error_log (syslog). The goal here is to have a page to enter a
>> search term and grep or zgrep pattern matches in the file (will be a
>> log file). Probably there is a better way to do this using php, but
>> this is what I was able to come up with using my limited php-
>> knowledge. Can anyone help me debug this?
>
>
> I should point out that I know this has something to do with the file-
> size. With a small file it works OK. With a large file it fails to the
> browser. In this case, a large file is up to 3.5GB of uncompressed
> ASCII text. There may be up to 100 files to search - I can do that
> part I think, once I get it to actually search the file! :-) Any help
> GREATLY appreciated.
>
> Probably I should mention that I am not a full-time developer ... I'm
> quite good with shell scripts, REGEX and procedural languages ... I'm
> a hacker at best with PHP :-) I'm more of a systems person.
>
(Top posting fixed)
Well, some code would help. But are you possibly running out of memory
and/or execution time? Those are the two main things which cause
problems with large amounts of data but not small.
Anything in your PHP error log?
>
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|