Re: New search related question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If there aren't many files and you don't intend to grow this site much
larger and intend to always have static HTML, any easy implementation
would be to read each file and search for the terms either in the
keywords tag or in the entire file.

Optionally, if you're on a *nix host you could exec() a grep for the
terms which returns the matching lines in an array and display as needed.

-Shawn

Jason Pruim wrote:
> Hi Everyone! :)
> 
> Just a quick question, I've done some googling but haven't been able to
> find what I need... I am looking at doing a search function for
> someone's website, the website is just static HTML files, and she
> doesn't want to redo the entire website to make it dynamic.
> 
> What I am thinking (And please correct me when I'm wrong!) is that if I
> maintain a database with keywords in it, and links to the pages it
> exists on, I can implement the search easily enough without redoing the
> entire website. IE: Someone searches the database for "Flowers" and
> flowers are the main product on: "Flowers.html" and "fakeFlowers.html"
> so on the page, I would display:
> 
> Search Term: Flowers
> 
> Search Results:
> link.to.site/Flowers.html
> link.to.other.site/fakeFlowers.html
> 
> Is there anything wrong with the way I'm thinking? Or is it that there
> is a better way to search through a static HTML site?
> 
> 
> -- 
> 
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424
> www.raoset.com
> japruim@xxxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux