1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Yet another "My search doesn't work on my site" (google/api related)

Discussion in 'Products & Tools' started by fugpup, Apr 28, 2004.

  1. #1
    Hey, I tried out the method of adding a search to my site using php. That I THINK Shawn wrote.

    Basic info. I'm hosting the website on my desktop using IIS I have it DNS liked from http://fugpup.servebeer.com and http://fugpup.myftp.org
    I also have installed the latest version of PHP

    This is the error I get when trying the search

    Notice: Undefined index: start in c:\website\results.php on line 32


    Notice: Undefined variable: line in c:\website\results.php on line 40
    Add Search
    To Your Site
    Notice: Use of undefined constant end - assumed 'end' in c:\website\results.php on line 51

    Notice: Undefined index: end in c:\website\results.php on line 51

    Notice: Use of undefined constant start - assumed 'start' in c:\website\results.php on line 51

    Notice: Undefined index: start in c:\website\results.php on line 51

    Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 51

    Notice: Use of undefined constant end - assumed 'end' in c:\website\results.php on line 51

    Notice: Undefined index: end in c:\website\results.php on line 51

    Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 53
    SEMrush
    Notice: Use of undefined constant results - assumed 'results' in c:\website\results.php on line 72
    Estimated Total Results: 0


    Notice: Use of undefined constant start - assumed 'start' in c:\website\results.php on line 78

    Notice: Undefined index: start in c:\website\results.php on line 78

    Notice: Use of undefined constant error - assumed 'error' in c:\website\results.php on line 79

    Notice: Use of undefined constant error - assumed 'error' in c:\website\results.php on line 80

    No Search Results Found
     
    fugpup, Apr 28, 2004 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,284
    Likes Received:
    2,600
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Okay, I updated the search script so your end doesn't have to "assume" the constants (damn Windows)... :) You can grab a new results.php from from:

    http://www.digitalpoint.com/tools/search/search.zip

    I don't think that will fix the "No Results Found" though. What is the exact URL you are using within the $site variable?

    - Shawn
     
    digitalpoint, Apr 28, 2004 IP
  3. fugpup

    fugpup Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, sorry it took so long. Anyways, I tried that new file you gave me. Now my results are as follows



    Notice: Undefined index: start in c:\website\results.php on line 32


    Notice: Undefined variable: line in c:\website\results.php on line 40
    Add Search
    To Your Site
    Notice: Undefined index: end in c:\website\results.php on line 51

    Notice: Undefined index: start in c:\website\results.php on line 51

    Notice: Undefined index: end in c:\website\results.php on line 51
    Estimated Total Results: 0


    Notice: Undefined index: start in c:\website\results.php on line 78

    No Search Results Found



    //The Exact URL I'm using in results.php is "fugpup.servebeer.com"
    //And I get the same results with "http://fugpup.servebeer.com"
     
    fugpup, May 4, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,284
    Likes Received:
    2,600
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    digitalpoint, May 5, 2004 IP
  5. fugpup

    fugpup Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm.... I went to google and did the "add url" thing. I'm stumped
     
    fugpup, May 5, 2004 IP