Php to Asp.Net

Last post 09-12-2009 8:02 PM by M imran shafiq. 1 replies.

Sort Posts:

  • Php to Asp.Net

    09-12-2009, 7:49 AM

    How i can convert following code please can any one convert it?


    <?php
        // 1 week
        session_cache_expire(60*24*7);
        session_start();
        
        $default_tags = 'agile ajax apache api apml applescript architecture auth autocomplete beautify bug bugs C canvas cheatsheet closure Cocoa code codedump comet compiler compression compressor Computer crossdomain csrf css3 D dashcode debug debugger debugging development dom ext firebug firefox flash flex framework functions greasemonkey hack hacks howto html html5 ie iframe iframes innerhtml input Java javascript jquery js js2 keycodes keypress LAMP language languages leak leaks livesearch memory memoryleak minify moo mootools namespace nu oauth obfuscate obfuscator objective-c onload oop opml optimisation optimised optimization pack packer performance perl php plugin plugins programming prototype prototyping rail rails regexp replacehtml reserved rest ruby scripting scroll scrolling sdk snippet';
        
        if (!@$_SESSION['existing_tags']) {
            $_SESSION['existing_tags'] = $default_tags;
        }
        
        $existing_tags = $_SESSION['existing_tags'];
        $tags = split(' ', $default_tags);
        
        // hit via ajax
        if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && @$_GET['tag']) {
            $match = array();
            foreach ($tags as $tag) {
                if (stripos($tag, $_GET['tag']) === 0) {
                    $match[] = $tag;
                }
            }
            
            echo json_encode($match);
            
            exit;
        }
    ?>

    If this post was useful to you, please mark it as answer. Thank you!

    Regards.
    mimranshafiq
    .NET Web Developer
    http://www.dotnetclassic.com
  • Re: Php to Asp.Net

    09-12-2009, 8:02 PM
    Answer
    If this post was useful to you, please mark it as answer. Thank you!

    Regards.
    mimranshafiq
    .NET Web Developer
    http://www.dotnetclassic.com
Page 1 of 1 (2 items)