SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2001
    Location
    -
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick question here about PHP.
    Can someone please tell me what I am doing wrong here? (I get errors)

    The document is called by http://localhost/find.php?search=term-goes-here

    <?
    $url = 'http://localhost/cgi/s?srch=$search';

    $lines_array = file($url);

    $lines_string = implode('', $lines_array);

    eregi("(.*)", $lines_string, $head);

    echo $head[0];
    ?>

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    Monmouth Junction, NJ
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try

    $url = "http://localhost/cgi/s?srch=$search";

    I think this should work

  3. #3
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You know I don't want to be one of those people that tells ya that your posting in the wrong forum but!!!

    Wouldn't this be better in the server side internet development > PHP and MySQL???

    Late
    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •