zshare embedding script with some bugs

Discussion in 'PHP' started by cleanbold, Jul 11, 2009.

  1. #1
    hi friends,
    i have coded zshare auto embedding script, it works
    like mydomain.com/flash.php?url=zshare file number
    now its not working due to ads during playing videos

    actually the code is
    <!
    <?php
    $a = $_GET['url'];
    $url = "http://www.zshare.net/video/".$a."/";
    $ch=curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    $page=curl_exec($ch);
    curl_close($ch);
    preg_match("~file=(.*?)'~is",$page,$match);
    preg_match('~<param name="URL" value="(.*?)">~is',$page,$download);
    $data = $download[1];
    if($embed != "")
    {
    $embed = $data;
    }
    if($embed == "")
    {
    $embed = $match[1];
    }
    ?>
    <?php echo $data; ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
    
    <HTML lang=en dir=ltr><HEAD><TITLE>My domain name</TITLE>
    
    
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
    <!--
    body {
            background-image: url();
            background-repeat: repeat-x;
    }
    -->
    </style>
    <b>It Takes some seconds to load.. please wait..!</b>
    <div align="center">
    <div align="center"><a href="<?php echo $embed;?>" class="style2 style1">Click Here To Download This Video</a> 
        </p>
    </div>
    <p align="center"><p align="center">
        </th>
    <th><p>&nbsp;</p>
    <p>
    <div align="center"><script type="text/javascript" src="/flash/swfobject.js"></script>
    
    <div name='mediaspace' id='mediaspace'></div>
    <script type='text/javascript'>
    var s1 = new SWFObject('/flash/myplayer.swf','flv','480','385','9');
    
    s1.addParam('wmode','transparent');
    
    s1.addParam('allowFullScreen', 'true');
    s1.addParam('allowScriptAccess', 'always');
    
    s1.addVariable("lightcolor", "0x000000");
    s1.addVariable("backcolor", "0xFFFFFF");
    s1.addVariable("frontcolor", "0x666666");
    s1.addVariable('width','480');
    s1.addVariable('height','385');
    s1.addVariable("file",'<?php echo $embed;?>&logo=/logo.JPG&autostart=true');
    s1.addVariable("brandname",'zshare.net'); 
    s1.addVariable("brandlink",'zshare.net'); 
    s1.addVariable("showguidebutton",'false'); 
    s1.addVariable("showsharebutton",'false'); 
    s1.addVariable("autostart", 'true');
    s1.write('mediaspace');
    
    </script>      
      <H3 align="center">&nbsp;</H3>
      </th>
    
    
    
    
    </HTML>
    
    <?
    PHP:
    any one can help me...
    the original file is here you can have a nice look
    http://rapidshare.com/files/254795748/zshare.zip.html
    i think this forum will led me to success
     
    cleanbold, Jul 11, 2009 IP
  2. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #2
    can any php programmer help me ... :(
     
    cleanbold, Jul 12, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    i think zshare has added ads to thier video so now if u want to do i think u will also need to display the ads too
     
    Bohra, Jul 12, 2009 IP
  4. god404

    god404 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    cool man but have you not tried iframe? in iframe, or try import the cutt address source, p re g match then import file. do u want me to help u man , what is exactly u are looking for? check ur pm.
     
    god404, Jul 14, 2009 IP
  5. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #5
    can you tell me to make iframe? its enough...
     
    cleanbold, Jul 14, 2009 IP
  6. anthonywebs

    anthonywebs Banned

    Messages:
    657
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    maybe try file_get_contents() instead of cURL
     
    anthonywebs, Jul 14, 2009 IP
  7. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #7
    not working :(
    its simply displays blank page any other idea :)
     
    cleanbold, Jul 15, 2009 IP
  8. god404

    god404 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    yea man try file get their are thousand of php example even if u are new u can create ur own php iframe so easy just google.

    hey dude check ur pm ur code should work now.
     
    god404, Jul 15, 2009 IP
  9. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #9
    thanx god404 u r really a good god.. taking lot of effort to help me!
     
    cleanbold, Jul 15, 2009 IP
  10. god404

    god404 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    u know ur welcome bro ^_^ and read ur pm just remember and read ur pm thanks
     
    god404, Jul 15, 2009 IP
  11. bollym4u

    bollym4u Well-Known Member

    Messages:
    152
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #11
    i can't download the file buddy, kindly upload it again n pmme the link, i will get it fixed
     
    bollym4u, Aug 9, 2009 IP
  12. bollym4u

    bollym4u Well-Known Member

    Messages:
    152
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #12
    hi god,
    oh you fixed it god, i need it cuz ma current script is working great, but some for some video its not working, i m using ifram, i will pm u ma email god
     
    bollym4u, Aug 13, 2009 IP
  13. bollym4u

    bollym4u Well-Known Member

    Messages:
    152
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #13
    bollym4u, Aug 14, 2009 IP
  14. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #14
    Is it possible to get it done without the ads ive tried a lot no luck yet
     
    Bohra, Aug 14, 2009 IP
  15. junaids

    junaids Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    hmm
    http://livedesi.tv/videos/catch.php?url=http://www.zshare.net/video/638436464cee965d
    HTML:
    thes guys got it without ads am using there site by iframe :;)
     
    junaids, Aug 14, 2009 IP
  16. nuts_fever_007

    nuts_fever_007 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    If anyone need the dailymotion, youtube or zshare script then feel free to contact me at feedback.circle@gmail.com

    I'm selling dailymotion, youtube, & zshare script all together for only $10.

    I can also provide you with the demo before buying it.

    Thank you
     
    nuts_fever_007, Sep 16, 2009 IP
  17. cleanbold

    cleanbold Active Member

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #17
    @bollym4u
    well working in ur site i think...
     
    cleanbold, Nov 2, 2009 IP
  18. Kang

    Kang Member

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #18
    hi

    can anyone post the working script :confused:
     
    Kang, Dec 1, 2009 IP
  19. bobmeetsworld

    bobmeetsworld Well-Known Member

    Messages:
    758
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    120
    #19
    bobmeetsworld, Jan 10, 2010 IP