Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
text file search tool
Results 1 to 4 of 4

Thread: text file search tool

  1. #1
    Newbie
    Join Date
    Nov 2004
    Location
    fresno, ca
    Posts
    2

    text file search tool

    hey everybody,
    I'm trying to find either a perl or php based tool to search through approx 100,000 flat text files with RPT extenstion, and be able to search through them via a web browser.

    all have the same format for the top 12 or so lines, and thats what i'd like to parse into a db (for example).

    does something like this exist? tried htdig, and it doesnt work.

    thanks.

  2. #2
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    i'm not sure i understand the question, but if i do you should be able to do it fairly easily by just opening all the .rpt files and regexing it out, in either of those langs

    i have a tutorial on regex's if you want on my site (should be in my sig)

  3. #3
    Newbie
    Join Date
    Nov 2004
    Location
    fresno, ca
    Posts
    2
    definitely a start, thanks.

    basically, I would like to be able to run a search rom a webpage on these text files for every instance of X (for example) and maybe be able to drill down furthur. the data is old reports from a financial app that has no search feature and are archived to a different server.

    thanks for the info on your site.

  4. #4
    Advisor
    Join Date
    Apr 2004
    Location
    orlando
    Posts
    608
    well, opening files in php is easy, and so would setting up a text form where the user could put in an expression to look for. I think your main concern here is going to be security. here is an example of a simple php page that just opens a file that is passed via arguments in the addy.

    http://sfexplore.com/~bniemczyk/index.phps

    notice how it removes . characters and / characters, your going to want to do similar or else an attacker could do something like

    http://yoursite/../../../../etc/passwd

    ;p

Similar Threads

  1. string enter to text file in PHP
    By lasanthaindika in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 05-22-2008, 02:53 AM
  2. export to a text file with comma & quote delimiter
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 01:33 AM
  3. Got the text driver file - now, how to use it?
    By Phaete in forum Linux - General Topics
    Replies: 6
    Last Post: 05-07-2002, 01:16 PM
  4. String of text into file?
    By MZGuy in forum Linux - General Topics
    Replies: 8
    Last Post: 01-03-2002, 09:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •