Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 1st Nov 2011, 06:16 PM   #1
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 1st Nov 2011, 06:20 PM   #2
Active Warrior
 
Join Date: 2011
Location: Winnipeg, Manitoba
Posts: 36
Thanks: 1
Thanked 6 Times in 6 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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);
Speedyapoc is offline  
The Following User Says Thank You to Speedyapoc For This Useful Post:
Unread 1st Nov 2011, 06:33 PM   #3
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 1st Nov 2011, 06:41 PM   #4
Active Warrior
 
Join Date: 2011
Location: Winnipeg, Manitoba
Posts: 36
Thanks: 1
Thanked 6 Times in 6 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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?
Speedyapoc is offline  
The Following User Says Thank You to Speedyapoc For This Useful Post:
Unread 1st Nov 2011, 06:44 PM   #5
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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

Brad Dixon

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 1st Nov 2011, 07:50 PM   #6
HyperActive Warrior
War Room Member
 
mgkimsal's Avatar
 
Join Date: 2006
Location: Raleigh, NC
Posts: 238
Thanks: 19
Thanked 32 Times in 29 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.

Michael Kimsal
http://heywords.com/ - for article writers

Last edited on 1st Nov 2011 at 08:09 PM. Reason: reread thread
mgkimsal is offline  
The Following 3 Users Say Thank You to mgkimsal For This Useful Post:
Unread 2nd Nov 2011, 04:43 AM   #7
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 2nd Nov 2011, 06:00 AM   #8
HyperActive Warrior
War Room Member
 
mgkimsal's Avatar
 
Join Date: 2006
Location: Raleigh, NC
Posts: 238
Thanks: 19
Thanked 32 Times in 29 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.

Michael Kimsal
http://heywords.com/ - for article writers
mgkimsal is offline  
The Following User Says Thank You to mgkimsal For This Useful Post:
Unread 2nd Nov 2011, 09:57 AM   #9
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 2nd Nov 2011, 02:24 PM   #10
HyperActive Warrior
War Room Member
 
mgkimsal's Avatar
 
Join Date: 2006
Location: Raleigh, NC
Posts: 238
Thanks: 19
Thanked 32 Times in 29 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.

Michael Kimsal
http://heywords.com/ - for article writers
mgkimsal is offline  
Unread 2nd Nov 2011, 03:57 PM   #11
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
mojojuju is offline  
The Following User Says Thank You to mojojuju For This Useful Post:
Unread 2nd Nov 2011, 04:41 PM   #12
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 04:42 PM   #13
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 2nd Nov 2011, 04:44 PM   #14
HyperActive Warrior
War Room Member
 
ccstudio's Avatar
 
Join Date: 2006
Location: Denver, CO, USA.
Posts: 266
Thanks: 74
Thanked 49 Times in 44 Posts
Blog Entries: 7
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

email it to admin at ccstudio.com

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

Thanks, Brad Dixon
ccstudio is offline  
Unread 2nd Nov 2011, 04:53 PM   #15
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 05:26 PM   #16
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
mojojuju is offline  
Unread 2nd Nov 2011, 05:51 PM   #17
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 06:17 PM   #18
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 06:30 PM   #19
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
mojojuju is offline  
Unread 2nd Nov 2011, 06:32 PM   #20
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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
mojojuju is offline  
Unread 2nd Nov 2011, 06:35 PM   #21
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 06:43 PM   #22
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
mojojuju is offline  
Unread 2nd Nov 2011, 06:54 PM   #23
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 2nd Nov 2011, 07:40 PM   #24
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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
mojojuju is offline  
Unread 2nd Nov 2011, 08:23 PM   #25
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

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.
valizr is offline  
Unread 10th Nov 2011, 06:30 AM   #26
Senior Web Developer
War Room Member
 
wasabi20's Avatar
 
Join Date: 2011
Location: Quebec, Canada
Posts: 113
Thanks: 32
Thanked 19 Times in 17 Posts
Default
Re: php to automate ioncube make license
Share on: 
fb share twitter share gplus share more share

Hi there,
I can help you, PVT me if you need something

Good luck
wasabi20 is offline  
Closed Thread


Bookmarks

Tags
automate, ioncube, license, make, php


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:50 PM.