ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

make_license $output returns 4

Author Message
mudreamworld



Joined: 14 Mar 2017
Posts: 1

PostPosted: Tue Mar 14, 2017 7:44 am    Post subject: make_license $output returns 4 Reply with quote

Hello,

i am trying to print out licence using make_license. but the $output retruns 4.

any idea?


$fname = "license.txt";
$command = "./make_license --passphrase testing --help --allowed-server www.blah.com -o $fname";
passthru($command,$output);



if ($output == "0") {
$download_link = $fname;
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/octet-stream");
header("Content-Length: " . filesize($download_link));
$filename = explode("/",$download_link);
$parts = count($filename);
header("Content-Disposition: attachment; filename=".$filename[$parts-1]);
readfile($download_link);
} else {
die ("Error $output occured!");
}



echos "Error 4 occured!"
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Tue Mar 14, 2017 12:41 pm    Post subject: Reply with quote

Contacting the support helpdesk may be best, but before that, try removing --help from the command line and see if that helps.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum