Jump to content


Photo

PHP Search Site Code


  • Please log in to reply
6 replies to this topic

#1 ballyduff20

ballyduff20
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 24 July 2006 - 02:40 PM

HI guys

Iam wonding if you can help with this problem iam having with my site. I want to put in a search box that will allow me to search the content of my site. Say for example my site is about soccer and i search man utd i want it to return the results as url's. Can you tell me how this can be done

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 24 July 2006 - 02:43 PM

Is your content stored in a database or is it a regular html site?

#3 ballyduff20

ballyduff20
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 24 July 2006 - 03:51 PM

The site is a regular html site

#4 Joe Haley

Joe Haley
  • Members
  • PipPipPip
  • Advanced Member
  • 103 posts
  • LocationCanada, eh?

Posted 24 July 2006 - 04:00 PM

http://www.google.co.../websearch.html

Google has some interesting options.
Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime
Don't teach men to program. Teach them to fish.

Please, try the RTFM solution before asking for help:
http://php.net/manual/en/index.php

#5 ballyduff20

ballyduff20
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 24 July 2006 - 05:09 PM

Those are interesting options but the problem is i want to search my own site rather than the web

#6 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 24 July 2006 - 05:15 PM

2 options
convert all that html information into databased information or
use php scripts, as bots.  Create a bunch of bots to data harvest, and index your site everytime someone searches, to try and find an occurence of whatever they search for, but getting this advanced, return url's stuff has to be in a database, unless the url's are on your site, and I can't help you with bots, I have 1 bot expert that works for me, but he costs quite a bit.,

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#7 Joe Haley

Joe Haley
  • Members
  • PipPipPip
  • Advanced Member
  • 103 posts
  • LocationCanada, eh?

Posted 24 July 2006 - 05:15 PM

I do belive one of those options allows you to search only your site.
if not, then just force a google search with a site: paramiter.
Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime
Don't teach men to program. Teach them to fish.

Please, try the RTFM solution before asking for help:
http://php.net/manual/en/index.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users