aspose file tools*
The moose likes PHP and the fly likes to search data from the computer using language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "to search data from the computer using language" Watch "to search data from the computer using language" New topic
Author

to search data from the computer using language

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 182

i want to know if i am having a folder in which data are like pdfs, excel sheet, word file, etc so and i want search these files on some key word that can be anywhere in the document.
so how can i do that using php.
Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 182

Megha Singhal wrote:i want to know if i am having a folder in which data are like pdfs, excel sheet, word file, etc so and i want search these files on some key word that can be anywhere in the document.
so how can i do that using php.


and the keyword i provide through text field and provide path to that document folder and then i search within that folder for particular keyword given by the user through text box.

kindly help me in this.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1973
    
    7

Once the file is opened/read, searching the file becomes the easy part. But first you to first determine the file type and read it. Now reading different type files may need some work. You may want to look into the linux utilities or open source libraries because I don't think PHP itself can do all these types.

K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: to search data from the computer using language
 
Similar Threads
Development of a tool
Download to word and making word non-editable
repalces my #sign with %23 (HEX of #) in URL which i don't want
Reseting an Iterator
Search using XPath