SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question searchable words inside the files

    Hi,

    I'd like to know it is possible PHP can search every single words in uploaded (.doc) and (.pdf) file?
    The user will upload the files and can search not only the keywords saved in the database but also every single words inside the uploaded files?

    Thanks for any suggestions!

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cutie_pt2004 View Post
    Hi,

    I'd like to know it is possible PHP can search every single words in uploaded (.doc) and (.pdf) file?
    The user will upload the files and can search not only the keywords saved in the database but also every single words inside the uploaded files?

    Thanks for any suggestions!
    Third party software is required to parse the docs. PDF spec is open and there are some libs available for parsing it:
    http://uk3.php.net/pdf

    Now, to parse Word documents you would need an instance of Microsoft Office running on your server. Then you can access it via PHP COM:
    http://uk.php.net/com


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
  •