Sumone Make Dis Work 4 Me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sumone Make Dis Work 4 Me

    I have registered with a zestadz mobile advertising platform today. I have installed the php code but it didn't work out. I tried to send them an email but it bounced back..

    And one thing, when I tried to use the admob code on the page it worked pretty fine..

    Here's that zestadz code in my page

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
        <head>
            <meta http-equiv="content-type" content="text/html;charset=utf-8" />
            <title>Reviews</title>
            <link href="review.css" rel="stylesheet" type="text/css"/>
        </head>
    <body>
            <div align="center">
                
    
    [img]movies/images/reviews.jpg[/img]
    
                [size="1"]{{ All the latest reviews on your mobile }}[/size]</p>
                
                
    
    [url="movies/hindi.php"]Bollywood Movies[/url]</p>
                
    
    [url="movies/english.php"]Hollywood Movies[/url]</p>
                        
    
            <?php
       $cid ="14131C047A50424B4E59415446584B408883"; 
       $mt ="pepsi"; 
       $request_ad ="impression";
       /*User agent and IP: used for ad targeting*/
       $ua = urlencode(getenv("HTTP_USER_AGENT"));
       $ip = urlencode($_SERVER[&#39;REMOTE_ADDR&#39;]);
       try
        {
            $url=&#39;http://www.zestadz.com/waphandler?cid=&#39;.$cid.&#39;&ua=&#39;.$ua.&#39;&ip=&#39;.ip.&#39;&mt=&#39;.$mt.&#39;&request=&#39;.$request_ad.&#39;&#39;; 
            $adoutput = fopen($url,&#39;r&#39;);
            if($adoutput==""){
                  throw new Exception("Sorry server is not connected");
             }         
              if ($adoutput){
            while (!feof($adoutput))
            $contents .= fread($adoutput,1024);
            fclose($adoutput);           
            if($content = (explode("~",$contents))){
            $lm = $content[0];
            $lm = $lm.("~").("ck");
            $ry = $content[1];
            $xr = $content[2];
            $yr  = $content[3];
            if($ry== &#39;3&#39;){
             $rx = $content[4];
                 }
                   }
            }
        }
    Catch(Exception $e){
        echo &#39;Message: &#39; .$e->getMessage();
        echo "
    ";
        }
        $ad_landing = &#39;http://www.zestadz.com/waplanding?lm=&#39;.$lm.&#39;&#39;;
         if($ry==&#39;2&#39;){
          echo &#39;[url="&#39;. $ad_landing .&#39;"]&#39;.$xr .&#39;[/url]&#39;;
        }
        if($ry==&#39;1&#39;){
                    echo &#39;[url="&#39;. $ad_landing .&#39;"]<img src= "&#39;.$xr .&#39;"/>[/url]&#39;;
        }
        else if($ry==&#39;3&#39;){
        echo &#39;[url="&#39;. $ad_landing .&#39;"] [img]&#39;.$xr.&#39;[/img] [/url]&#39;;
          echo "
    ";
          echo &#39;[url="&#39;. $ad_landing .&#39;"]&#39;.$rx .&#39;[/url]&#39;;
        }
        else if($ry==&#39;4&#39;){
         echo &#39;Sorry server is not connected&#39;;  
        }
    ?>
    
    </div>
        </body>
    </html>

    Help me outzZ

    #2
    what is ur problem with it. apart from missing alt="" for images i think it works fine

    Comment

    Working...
    X