1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

media-kings php script to create exe files... how does it work???

Discussion in 'Pay Per Install' started by stegejaaaarn, Apr 4, 2015.

  1. stegejaaaarn

    stegejaaaarn Junior Member

    Joined:
    Mar 15, 2011
    Messages:
    182
    Likes Received:
    45
    When i saw the code for the new feature to share exe files from your own hosting i thought it looked pretty straight forward.... but i can't figure out how to make it work... anyone know?
    It should be simple, but i cant get it right ><

    Will be very grateful for help!
     
  2. BlackTN

    BlackTN Junior Member

    Joined:
    Nov 21, 2012
    Messages:
    133
    Likes Received:
    13
    If your hosting service uses PHP, then create a php file and copy the code provided by media-kings plus <?php at the beginning and ?> at the end:
    PHP:
    <?php
    here goes their code
    ?>
    Then, use the url of the php file as a direct download link: yourwebsite.com/yourfile.php will download the exe file.
     
    • Thanks Thanks x 1
  3. stegejaaaarn

    stegejaaaarn Junior Member

    Joined:
    Mar 15, 2011
    Messages:
    182
    Likes Received:
    45

    ahhhh, thank you!! =)
    i tried declaring the function and the variables in index.php, but every time it was time to call the function i got a crabload of errors xD

    working now, thanks :)