SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone know ASP.NET VB and PHP? Need help converting small snippet

    I don't know much about ASP.NET VB, can someone give me some pointers on how to covert this PHP snippet ASP.NET VB?

    Code:
    <?php 
    $parse = parse_url($_SERVER['HTTP_REFERER']);
    $se = $parse["host"];
    $raw_var = explode("&", $parse["query"] );
    foreach ($raw_var as $one_var) {
        $raw = explode("=", $one_var);
        $var[$raw[0]] = urldecode ($raw[1]);
    }
    $se = explode (".", $se);
    switch ($se[1]) {
        case 'yahoo':
            $keywords = $var['p'];
            break;
        default:
            $keywords = $var['q'];
    }
    unset($parse, $se, $raw_var, $one_var, $var);
    ?>

  2. #2
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    This page should get you started: http://msdn.microsoft.com/en-us/libr...lreferrer.aspx


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
  •