Page 3 of 3

Re: Check Web

Posted: Thu Jan 31, 2019 4:11 pm
by mol
Franco, check you message box.
I've created database for you and account to its.
You can create tables.
When you finish, put here info what do you want to place in db and how do you want to check license. It won't be a problem to create some php functions to manage db

Re: Check Web

Posted: Thu Jan 31, 2019 5:12 pm
by franco
I have thought about this some more.
If I lease a program to a client, 99.9 % of businesses that would lease the program will pay monthly.
Each client that purchases the program out right has a 8 character serial number.
I thought for leases I would add 2 numbers at end of serial number chr(76). Now lease customers serial number has 10 characters. 1234567876.
All programs at start of day will check website if they have 10 characters in their serial number. I do not to need to check in a file for numbers.
I only need to create a empty file on the website with their number if they are overdue and will not pay. (1234567876.pdf).
If that file is on the website the program will not run. There may ever be only a couple or hopefully no files in that part of the site.
If the site can not be reached or the file is not there the program will run. Does this make more sense and very easy to do.
Franco

Re: Check Web

Posted: Thu Jan 31, 2019 6:36 pm
by mol
I think your program should check if client has valid license and date of purchase it should store on local machine. What about a situation, when this machine is offline? You should prepare whole scenario for validation.

Re: Check Web

Posted: Thu Jan 31, 2019 9:22 pm
by franco
I think most computers are on the internet these days. When program starts it can check for internet and if no internet message LIMITED USE ?.
If they start the computer while on the internet and the number is on the website the program could change their serial number, then the program
will never start unless I send a special program to reset the serial number. I have to be a bit lenient as these are pos business customers, I hate to shut them down immediately, as most payment problems can be resolved.
I know how out of date they are as they are in my accounts receivable.
Any more thoughts would be appreciated .

Re: Check Web

Posted: Fri Feb 01, 2019 12:53 pm
by serge_girard
Franco,

Immediate shutdown is a bit ...hard. You must build in that a message is being sent telling about future shutdown and how to resolve.
When there is no internet connection you should build in the USE of the previous connection, instead of limited use.

serge

Re: Check Web

Posted: Fri Feb 01, 2019 5:08 pm
by franco
I was thinking, when I send a receipt invoice for payment I could send a a complicated number that become a date I could get them to type
into a monthly update ?? which would be stored in a field of control file to compare with current date.
Or create a file in the current folder containing a complicated number creating a date.
I would never let program shut down unless they where way over due on payments and no resolution could be found. Like three months on a one
month lease.
This way I do not need internet other then emailing invoices and receipts. If they have no internet there is phone or mail.

Re: Check Web

Posted: Sat Feb 02, 2019 8:52 am
by serge_girard
Remember current date can also be a problem. One day a friend's computer date was set to 01-01-1980 (or something) and his programs reacted very strange...

Serge

Re: Check Web

Posted: Sun Feb 03, 2019 2:05 am
by franco
Thanks Serge , You give me thoughts. My program has a field lastuse that updates at first start.
now says
if lastuse <> date()
replace lastuse with date()
I will replace with
if Date() > lastuse
replace lastuse with date()
endif
Now I am still working on when to create a folder in some part of computer when I send chr codes that equal something in control file for the
customer to update when I email the chr codes at new month.
The folder will have a new date stamp I can compare each day from.
Franco