Re: Search in PhP
| From: | Nicholas Robinson | Date: | Wed, 30 Jul 2003 10:53:33 +0000 |
| Subject: | Re: Search in PhP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157504@lists.php.net to get a copy of this message | ||
Try running a exec() running a grep command on your DocumentRoot.
something like 'grep -ril fred * would just produce the filenames containing
fred or -ri would display the context.
You could then produce links to the files from the resulting output.
HTH
On Wednesday 30 Jul 2003 10:51 am, khuram noman wrote:
> Hello
>
> i have a site in php but not using database i want to
> add the search facilty in that site means user can
> search into the contents of the site .so how can i do
> that in php without using database.waiting for ur soon
> reply
>
> thanks
> khuram noman
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com