Re: Search Engine like the one used on the famous php.net!
| From: | (Delbono) | Date: | Mon, 23 Oct 2000 13:25:57 +0000 |
| Subject: | Re: Search Engine like the one used on the famous php.net! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3453@lists.php.net to get a copy of this message | ||
Simple hint.
Add a fake image to every old and new image.
This fake image is the output of a php file. This php file tracks clicks.
Every clicks records the page clicked. (the url)
Create a db and a table.
Table made like this.
| urlID | url | text_of_page |
the very first time someone loads the page, the script that generates the
fake image checks into the db if url loaded is present in the db.
if present, the scripts doesn't do anything.
If not present, the script makes 2 things:
adds the url to the db
adds text of the new page to the third field. (using the strip_tags
function)
So you've got
1. TEXT TO SEARCH IN
2. URL to display results.
for your search engine.
If you don't want to call the fake_image_script for nothing every time,
(cause the script is used just the first time)
you can build up another really simple script called "ADD_URL.php3" for your
own use.
Every time you add a page, you have to remember to suggest the url to your
search engine.
Regards
Nicola
(Type a title for your page here)
----- Original Message -----
From: "Yoeri De Bruyn" <yoeri_de_bruyn@multicap.be>
To: "php Windows" <php-windows@lists.php.net>
Sent: Monday, October 23, 2000 3:05 PM
Subject: [PHP-WIN] Search Engine like the one used on the famous php.net!
> Hi phpees!
>
> I'm getting a litle desperate, 'cause I've "searched" already lots of
> places, but no luck!
>
> Has someone a clue on how to make a search engine in php to search your
site
> on content, i.e. like any good site has to search the site content and
> display a list of hyperlinks?
>
> Any trick or hint is being very appreciated!
> Yoeri.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>