How can I make my project in trial period production environment to customer before purchasing?
Afaik, you can’t… You can try the functionality, but scriptcase adds a banner and deployment is disabled.
Thanks alot for your interests.
You can have table with a field type date. when your app run verify the date and show an alert for remain days.
It`s wonderful How I can do that .
Can you please help me?
Create a table for you know when a user end your trial. This table must have a some fields like USERNAME, DATE_ENDING (this field store the date when the trial end), so when a username login in your app, you must verify for this user if DATE_ENDING is greater then Current date.
Sincere thanks for your concern.
I appreciate your hard work and effort
You need something like this in login app - event onScriptinit:
$due_date = ‘2100-12-31’;
[due_date] = ‘31.12.2100’;
//getting the current date from php
$current_date = date(‘Y-m-d’);
{amount_days} = sc_date_dif($due_date, ‘aaaa-mm-dd’, $current_date, ‘aaaa-mm-dd’);
if({amount_days} > 0)
{
// echo “License validity yet:” .{amount_days}." days.";
}
elseif({amount_days} == 0)
{
//echo “License valid only: today!”.{amount_days}." “;
sc_alert (“LICENSE IS VALID ONLY TODAY - PLEASE CONTACT THE LICENSEE TO RENEW THE LICENSE!”);
}
elseif({amount_days} < 0)
{
//echo “License expired before:”.{amount_days}.” days ";
sc_alert (“YOUR LICENSE HAS EXPIRED - PLEASE CONTACT THE LICENSEE TO RENEW THE LICENSE!”);
sc_redir(login_license_expired.php);
}
I will always remember how you helped me to solve these complexed issues. I can only hope that someday I’ll be in a position to repay you.
If you run the application in your own environment (saas) then this is a good solution. Otherwise, if you deploy on your customers server then it is pretty easy to locate and remove the code. An obfuscator could help here, but adds extra costs.
thank you for your comment.
sincerely