PHP Programming Contest - Cash and Link Prizes

Discussion in 'Design Contests' started by klown, May 23, 2007.

  1. KIbeth

    KIbeth Active Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #21
    *Wislte* Come on someone post some more please!
     
    KIbeth, May 27, 2007 IP
  2. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #22
    Contest is over, too bad there were almost no contestants. Anyhow KIbeth wins with the following code:

    <?
    $egg = array("ham", "bacon", "eggs", "chips", "toast", "milk", "tree", "dead", "sorry", "puke");
    $real = "Ham bacon eggs chips toast SEOandStuff.com milk tree dead sorry puke";
    $final = str_replace($egg, "", "$real");
    echo $final
    ?>
    PHP:
    p2y got second with the following code

    <?
    function get_piece($start,$end,$string)
    {
    $result=explode($start,$string);
    $result=explode($end,$result[1]);
    $result=$result[0];
    return $result;
    }
    $addr=base64_decode("aHR0cDovL3d3dy5zZW9hbmRzdHVmZi5jb20");
    $seo=file_get_contents($addr);
    
    $seo=get_piece("<title>","and Stuff",$seo);
    $seo=trim($seo);
    $stuff=file_get_contents($addr);
    $stuff=get_piece("<title>SEO and "," - Services",$stuff);
    $stuff=trim($stuff);
    $com=substr($addr,22,4);
    $com=trim($com);
    echo trim("<b>".$seo."</b>And<b>".$stuff."</b>".$com);
    
    
    ?>
    PHP:
    Yeah its a bit over 512 but a simple find replace on some of those variables gets it down to 512.

    private message me to get some winnings..
     
    klown, May 31, 2007 IP