Hello Friends,

Greetings. I have a search option in my website but it doesn't work properly. And i don't want to use google search in my web page.

If any1 can help me in this regard that, how to make own search engine for my own website ?

Thanks & Regards

How is your site organized ? Do you use PHP/MySql or just plain HTML files ? What do you want to search ? What results do you expect ?

Hi,

Only index page is as "index.php"
Rest of the pages are in HTML.

Then you would probably need to make a function, that searches every html file for a specific keyword. Have a look at the open_dir(), file_get_contents() and preg_match() PHP functions.

Sorry didn't get you.

Search php.net for these functions, read the docs, try the examples, then code you search engine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.