php to automate ioncube make license

25 replies
We are almost ready to launch. We have Ioncube and have everything working except the php script to run i the members area so that members enter their email and it sends them a iicense. Is there anybody that can help

Thanks
Brad Dixon
#automate #ioncube #license #make #php
  • Profile picture of the author Speedyapoc
    Help with what? Do you have existing code that is faulty? Do you wish to receive some code to do this task? Do you have a budget for this task and would be willing to pay for code?

    Much more information is needed before you can receive adequate help.

    If "IonCube" has some sort of PHP wrapper or class, it could be as simple as this (obviously you would need to sanitize the data prior, etc).

    $license = ion->getLicense();
    mail($_GET['email'], 'License Info', 'Hello, here is your license: ' . $license);
    {{ DiscussionBoard.errors[4974748].message }}
  • Profile picture of the author ccstudio
    we have the cerberus ioncube Foundry and ion Bundler. Eeverything is fine. They don't provide the script to integrate the make license script with our members area where our members can input their domain and it sends them their license and we need to know where that license goes. Do you know Ioncube very well if not Im not interested . If you do lets talk. admin at ccstudio.com
    Signature

    Check Out My Latest WSO [OFFLINE] Independence Day Training Series
    JV Sign UP http://www.viralvideoventures.com/wso2

    Thanks, Brad Dixon

    {{ DiscussionBoard.errors[4974815].message }}
    • Profile picture of the author Speedyapoc
      I'm not familiar with IonCube, however, I am extremely well rounded in PHP, which I presume you are looking for based on your thread title. Could you enlighten me on this line?

      They don't provide the script to integrate the make license script with our members area where our members can input their domain and it sends them their license and we need to know where that license goes.
      So you have a script that creates the licenses. Do you generate them manually? Can you link to the script through PHP? Are you looking for code to allow you to email a generated license to the users?
      {{ DiscussionBoard.errors[4974860].message }}
  • Profile picture of the author ccstudio
    Sorry I have a very good php programmer We need somebody that knows ioncube specifically. Thanks for the offer.

    Brad Dixon
    Signature

    Check Out My Latest WSO [OFFLINE] Independence Day Training Series
    JV Sign UP http://www.viralvideoventures.com/wso2

    Thanks, Brad Dixon

    {{ DiscussionBoard.errors[4974871].message }}
    • Profile picture of the author mgkimsal
      Originally Posted by ccstudio View Post

      Sorry I have a very good php programmer We need somebody that knows ioncube specifically. Thanks for the offer.

      Brad Dixon
      At the risk of sounding rude, if this person you have was a very good php programmer, they could figure this out.

      ionCube :: View topic - using make_license

      About 7 seconds of searching brought me to ioncube's support forum, and this thread indicates they ship with a 'make_license' script. Another thread indicates that you can run the make_license script on your webserver to do what you're trying to do.

      In that same forum, there's a link to a detailed step by step on how to do this:
      Generating Ioncube Licenses » KBeezie

      Answering "I've got a good developer" when someone tries to get more information from you *to help you*, and you reply the way you did, can come across as insulting. A "good php developer" should be able to figure this out with ioncube directly. You've paid for that product, they owe you the support.

      EDIT:
      Wow - wait a second. I just reread the thread above. ionCube provides a 'make_license' script, and you are aware of it, and you have a developer that doesn't understand how to connect the two together. That php developer may be many things, but 'good' isn't an adjective I'd use. "eager", "junior", "capable", "learning", etc. But "good" should be reserved for people who can make something this basic happen.

      Yeah, I may be reading a bit too much in to an off-handed comment, but realize that many people who can help may read the comment and react the way I did, but without commenting - basically, to write this off, rather than helping.
      {{ DiscussionBoard.errors[4975132].message }}
  • Profile picture of the author ccstudio
    I havent had sleep for 36 hours sorry you are right.
    this is driving me crazy i will take all the help I can get
    thanks
    Signature

    Check Out My Latest WSO [OFFLINE] Independence Day Training Series
    JV Sign UP http://www.viralvideoventures.com/wso2

    Thanks, Brad Dixon

    {{ DiscussionBoard.errors[4976898].message }}
    • Profile picture of the author mgkimsal
      Originally Posted by ccstudio View Post

      I havent had sleep for 36 hours sorry you are right.
      this is driving me crazy i will take all the help I can get
      thanks


      We shouldn't be driving on the information superhighway without sleep

      The links above should help, and you'll *probably* need to be using the php exec() command, and I'd also look at PHP: escapeshellarg - Manual as well.
      {{ DiscussionBoard.errors[4977212].message }}
  • Profile picture of the author ccstudio
    OK here is the official questions

    Question 1. this script (stripped down of the useless code), does not work.

    <?php
    $domain = "www.domain.com";//this is a test, i will get this data from the members, through a form
    $domain = str_ireplace("www.", "", $domain);
    $command = "make_license --passphrase {password_here} --allowed-server ".str_replace("'", "", escapeshellarg($domain)).",".
    str_replace("'", "",escapeshellarg("www.".$domain));
    passthru($command,$output);
    ?>

    Question 2. Where do you store it once you have it?


    Can anyone help. yes anyone.
    Signature

    Check Out My Latest WSO [OFFLINE] Independence Day Training Series
    JV Sign UP http://www.viralvideoventures.com/wso2

    Thanks, Brad Dixon

    {{ DiscussionBoard.errors[4978539].message }}
    • Profile picture of the author mgkimsal
      Originally Posted by ccstudio View Post

      OK here is the official questions

      Question 1. this script (stripped down of the useless code), does not work.

      <?php
      = "www.domain.com";//this is a test, i will get this data from the members, through a form
      = str_ireplace("www.", "", );
      = "make_license --passphrase {password_here} --allowed-server ".str_replace("'", "", escapeshellarg()).",".
      str_replace("'", "",escapeshellarg("www.".));
      passthru(,);
      ?>

      Question 2. Where do you store it once you have it?


      Can anyone help. yes anyone.

      1. what doesn't work about it?

      2. I'm assuming the license would be in the $output (possibly as an array you'd need to join()), but you'd want to write that to a file. I can't tell you where to write it because I don't know the architecture of your system and how that relates to the need.

      3. I'd think the make_license might have an option to write out the license file to a specified location, which would simplify your question 2.
      {{ DiscussionBoard.errors[4980069].message }}
    • Profile picture of the author mojojuju
      I just downloaded a trial of ioncube and the script you've posted works like a charm after I've put it in the same directory as the make_license executable and after I've put ./ in front of the command to call it.

      After that, calling the script from a browser or the command line outputs the license in plain text like this:

      ------ LICENSE FILE DATA ------- 38SWS037/dWDBSiNoiI18nQ6BJMpdYcb 7Zzvwmku14iZoaG+k8wflwu18CLaMoLJ dy2m2ZKxCi5FZTp+6H/YxtrRquRlpvpQ JE76s6S/hxnBOmGIo/4as6bEY/TGzlyH uAzlXOnClEdOcMD0fzSZAzWOUFHMp9Wu MHpPRnTW2+B5qUyNsfyrx1oJUXn8nvmU 7cYCLfg1sU44QWDsHvJptWm/bti8Qlf2 sMFbCPMICJPEEjfeP59grgZHJqxXFbeK Y6YCH8Kka6CIP/w2pmg+28KcXB7c9lFw H8MPD/bHObaP+ly5R2grAJcEagEg2RcM dUeYV7EUF8woz9C2MaA46E4Z+/7xSF0M 6avJMVrM7z4sEko3uH9lraVKVSOUKEbt XxgQQiUPLzLUgkcasOFtL+EWoPiu1MeR OHAKeWp6k0oszPzgGPqRkaA4 --------------------------------



      Originally Posted by ccstudio View Post

      OK here is the official questions

      Question 1. this script (stripped down of the useless code), does not work.

      <?php
      = "www.domain.com";//this is a test, i will get this data from the members, through a form
      = str_ireplace("www.", "", );
      = "make_license --passphrase {password_here} --allowed-server ".str_replace("'", "", escapeshellarg()).",".
      str_replace("'", "",escapeshellarg("www.".));
      passthru(,);
      ?>

      Question 2. Where do you store it once you have it?


      Can anyone help. yes anyone.


      Originally Posted by mgkimsal View Post

      3. I'd think the make_license might have an option to write out the license file to a specified location, which would simplify your question 2.

      And sure enough it does. Running make_license -h reveals that all that is needed to write the license to a specific location is to run make_license with the -o <path> option to let it know where to write the license.
      Signature

      :)

      {{ DiscussionBoard.errors[4980581].message }}
      • Profile picture of the author valizr
        Hi,

        Can you create a phpinfo.php file on your server, with
        <?php
        phpinfo();
        ?> and send me the link to see it ? This has become defenetly a server problem, if you say that the script posted by Brad is working ok on yours.

        Thanks,
        Vali.
        {{ DiscussionBoard.errors[4980830].message }}
      • Profile picture of the author ccstudio
        email it to admin at ccstudio.com
        Signature

        Check Out My Latest WSO [OFFLINE] Independence Day Training Series
        JV Sign UP http://www.viralvideoventures.com/wso2

        Thanks, Brad Dixon

        {{ DiscussionBoard.errors[4980846].message }}
        • Profile picture of the author valizr
          Hi Mojojuju,

          You say you put the script copy/paste from the version Brad posted ? Or you used the make_license.exe file ? If you did, please give me more details.

          Thanks,
          Vali.
          {{ DiscussionBoard.errors[4980893].message }}
  • Profile picture of the author ccstudio
    Ok it may be a server issue can you create a php file called phpinfo.php and the code <?php phpinfo(); ?> and send us the link, so we can compare his server with ours. It's a long shot, but we should try.

    Thanks man
    Signature

    Check Out My Latest WSO [OFFLINE] Independence Day Training Series
    JV Sign UP http://www.viralvideoventures.com/wso2

    Thanks, Brad Dixon

    {{ DiscussionBoard.errors[4980835].message }}
  • Profile picture of the author mojojuju
    Ok guys, here's the phpinfo as requested...

    phpinfo()


    This is a stock Virtualmin install on a Debian VPS with nothing else added to the default PHP configuration.


    Originally Posted by valizr View Post

    Hi Mojojuju,

    You say you put the script copy/paste from the version Brad posted ?
    As I mentioned, the only modification to the script was the addition of "./" before calling make_license

    Here's the full text of what I used that works:

    [PHP] Ioncube wrapper - Pastebin.com

    Originally Posted by valizr View Post

    Or you used the make_license.exe file ? If you did, please give me more details.

    Thanks,
    Vali.
    I'm not using Windows so I don't have any make_license.exe file. I'm using Linux. If you're using Windows, then it's no wonder that the above PHP script didn't work. Or, if you're using Linux, it's no surprise that calling make_license.exe didn't work. Also, if you don't have the PHP script in the same folder as make_license, then it's not going to work...

    Are you able to successfully call make_license from the command line?

    Also, are you guys on shared hosting? If so, passthru could be disabled.
    Signature

    :)

    {{ DiscussionBoard.errors[4981079].message }}
    • Profile picture of the author valizr
      Hi,

      We are on shared hosting. we are on a linux server, but i asked because you said "execuable file", which suggested .exe
      Also, i tried running license.php file, which is next to make_license - the linux file. This is my test site, so if you have the time, or you want to, i could show you exactly what i did, maybe you'll see better if i'm doing something wrong. We called hostgator, but they didn't find any special setting, or problem that might block execution of this script.

      Thank you for your feedback,
      Vali.
      {{ DiscussionBoard.errors[4981190].message }}
      • Profile picture of the author valizr
        Not sure if it helps, but could you attach the file make_license ? I know it is a long shot, but what if we tried with your file, if ours doesn't output anything ? It should work on reallifesolutions mobi/license.php

        Also, where did you get the trial ? I looked but couldn't find a trial to include make_license file with it.

        Thanks,
        Vali.

        Thanks,
        Vali.
        {{ DiscussionBoard.errors[4981283].message }}
        • Profile picture of the author mojojuju
          Originally Posted by valizr View Post

          Not sure if it helps, but could you attach the file make_license ? I know it is a long shot, but what if we tried with your file, if ours doesn't output anything ? It should work on reallifesolutions mobi/license.php

          Also, where did you get the trial ? I looked but couldn't find a trial to include make_license file with it.

          Thanks,
          Vali.

          Thanks,
          Vali.

          I downloaded the trial right here:

          http://downloads.ioncube.com/eval_do...luation.tar.gz
          Signature

          :)

          {{ DiscussionBoard.errors[4981347].message }}
      • Profile picture of the author mojojuju
        Originally Posted by valizr View Post

        Hi,

        We are on shared hosting. we are on a linux server, but i asked because you said "execuable file", which suggested .exe
        make_license is an executable file. But you will have to make sure the proper file permissions are set or else you won't be able to execute it.


        Originally Posted by valizr View Post

        Also, i tried running license.php file, which is next to make_license - the linux file.
        I have no idea what license.php is, but if it's the script mentioned in this thread - the one used to call make_license - then it better be in the same directory as make_license.

        Also, you haven't confirmed whether you can run make_license from the command line. I suspect there could be a permissions problem.


        Originally Posted by valizr View Post

        This is my test site, so if you have the time, or you want to, i could show you exactly what i did, maybe you'll see better if i'm doing something wrong.
        Sure. Contact me if needed.
        Signature

        :)

        {{ DiscussionBoard.errors[4981342].message }}
        • Profile picture of the author valizr
          I am sorry to admit, but i don't know how to run make_license from the command line. (license.php is the file which has the exact code you said it worked for you, and yes, next to - i meant it is in the same directory as make_license.)

          Maybe you can tell me how to do that - run the make_license file from the command line ? make_license file has 755 permissions by the way.
          {{ DiscussionBoard.errors[4981365].message }}
  • Profile picture of the author mojojuju
    Ok, don't worry about running it from the command line; 755 will allow it to run.

    Now, could you put the following script in the same directory as make_license?

    [PHP] Ioncube wrapper - Pastebin.com

    Then, just call the script from a browser and report back with your results.
    Signature

    :)

    {{ DiscussionBoard.errors[4981410].message }}
    • Profile picture of the author valizr
      The result is a white screen. look in reallifesolutions dot mobi, user mojojuju at reallifesolutions dot mobi and pass vali. i will remove this ftp account shortly after you take a look. i think everything is ok, and should work, but for some strange reason, it doesn't. I compared the make_license files, mine and your trial one, and they are identical.

      Thank you,
      Vali.
      {{ DiscussionBoard.errors[4981447].message }}
  • Profile picture of the author mojojuju
    Those FTP credentials don't work. If you want me to take a look at it, send some valid FTP credentials to throwaway123@inbox.com
    Signature

    :)

    {{ DiscussionBoard.errors[4981684].message }}
    • Profile picture of the author valizr
      Did you have any luck finding the problem ? I tried the script on several sites (which are on different servers), and none worked. We might create the licenses on your server, if we don't find a solution

      Just kidding,
      Vali.
      {{ DiscussionBoard.errors[4981889].message }}
  • Profile picture of the author wasabi20
    Hi there,
    I can help you, PVT me if you need something

    Good luck
    {{ DiscussionBoard.errors[5025650].message }}

Trending Topics