Re: implementing a website search feature using php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NC

    #1

    Re: implementing a website search feature using php

    On Jul 16, 10:51 am, Sudhakar <sudhakarar...@ gmail.comwrote:
    >
    i want to implement a feature where a user searches with
    a keyword and search results are displayed according to
    the keyword or phrase entered by the user.
    Use an off-the-shelf search engine... I've used Sphider on a couple
    of occasions:



    Cheers,
    NC
  • C. (http://symcbean.blogspot.com/)

    #2
    Re: implementing a website search feature using php

    On Jul 17, 1:39 am, NC <n...@iname.com wrote:
    On Jul 16, 10:51 am, Sudhakar <sudhakarar...@ gmail.comwrote:
    >
    >
    >
    i want to implement a feature where a user searches with
    a keyword and search results are displayed according to
    the keyword or phrase entered by the user.
    >
    Use an off-the-shelf search engine... I've used Sphider on a couple
    of occasions:
    >

    >
    Cheers,
    NC
    I'd recommend mnogo.

    Certainly, as burgermeister01 wrote, what you propose is far from
    being very efficient. You really want to index the keywords separately
    from querying the data.

    If its just a quick though, then a whole search engine might be
    overkill - if you're running on Unix/Linux/Posix, then exec something
    like:

    find /document/root/ -regex '(.html)|(.php) ' grep -H '$searchword' {}
    \;

    C.

    Comment

    • Jerry Stuckle

      #3
      Re: implementing a website search feature using php

      C. (http://symcbean.blogspot.com/) wrote:
      On Jul 17, 1:39 am, NC <n...@iname.com wrote:
      >On Jul 16, 10:51 am, Sudhakar <sudhakarar...@ gmail.comwrote:
      >>
      >>
      >>
      >>i want to implement a feature where a user searches with
      >>a keyword and search results are displayed according to
      >>the keyword or phrase entered by the user.
      >Use an off-the-shelf search engine... I've used Sphider on a couple
      >of occasions:
      >>
      >http://www.sphider.eu/
      >>
      >Cheers,
      >NC
      >
      I'd recommend mnogo.
      >
      Certainly, as burgermeister01 wrote, what you propose is far from
      being very efficient. You really want to index the keywords separately
      from querying the data.
      >
      If its just a quick though, then a whole search engine might be
      overkill - if you're running on Unix/Linux/Posix, then exec something
      like:
      >
      find /document/root/ -regex '(.html)|(.php) ' grep -H '$searchword' {}
      \;
      >
      C.
      >
      No way. You do not want to grep PHP source code for your search words.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • C. (http://symcbean.blogspot.com/)

        #4
        Re: implementing a website search feature using php

        On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
        C. (http://symcbean.blogspot.com/) wrote:
        On Jul 17, 1:39 am, NC <n...@iname.com wrote:
        On Jul 16, 10:51 am, Sudhakar <sudhakarar...@ gmail.comwrote:
        >
        >i want to implement a feature where a user searches with
        >a keyword and search results are displayed according to
        >the keyword or phrase entered by the user.
        Use an off-the-shelf search engine... I've used Sphider on a couple
        of occasions:
        >>
        Cheers,
        NC
        >
        I'd recommend mnogo.
        >
        Certainly, as burgermeister01 wrote, what you propose is far from
        being very efficient. You really want to index the keywords separately
        from querying the data.
        >
        If its just a quick though, then a whole search engine might be
        overkill - if you're running on Unix/Linux/Posix, then exec something
        like:
        >
        find /document/root/ -regex '(.html)|(.php) ' grep -H '$searchword' {}
        \;
        >
        C.
        >
        No way. You do not want to grep PHP source code for your search words.
        >
        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstuck...@attgl obal.net
        =============== ===
        I'd agree this is a security vulnerability - but it's explicitly what
        the OP asked.

        C.

        Comment

        • Jerry Stuckle

          #5
          Re: implementing a website search feature using php

          C. (http://symcbean.blogspot.com/) wrote:
          On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
          >C. (http://symcbean.blogspot.com/) wrote:
          >>On Jul 17, 1:39 am, NC <n...@iname.com wrote:
          >>>On Jul 16, 10:51 am, Sudhakar <sudhakarar...@ gmail.comwrote:
          >>>>i want to implement a feature where a user searches with
          >>>>a keyword and search results are displayed according to
          >>>>the keyword or phrase entered by the user.
          >>>Use an off-the-shelf search engine... I've used Sphider on a couple
          >>>of occasions:
          >>>http://www.sphider.eu/
          >>>Cheers,
          >>>NC
          >>I'd recommend mnogo.
          >>Certainly, as burgermeister01 wrote, what you propose is far from
          >>being very efficient. You really want to index the keywords separately
          >>from querying the data.
          >>If its just a quick though, then a whole search engine might be
          >>overkill - if you're running on Unix/Linux/Posix, then exec something
          >>like:
          >>find /document/root/ -regex '(.html)|(.php) ' grep -H '$searchword' {}
          >>\;
          >>C.
          >No way. You do not want to grep PHP source code for your search words.
          >>
          >--
          >============== ====
          >Remove the "x" from my email address
          >Jerry Stuckle
          >JDS Computer Training Corp.
          >jstuck...@attg lobal.net
          >============== ====
          >
          I'd agree this is a security vulnerability - but it's explicitly what
          the OP asked.
          >
          C.
          Without necessarily knowing what he asked for...

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          Working...