r/PHPhelp • • Mar 05 '25

how to validating serial key using php

Hello, could someone help me by giving me some guidance?

https://ibb.co/p6kd0WV8

I have this script, which gets the serial number that is inside PHP. However, I don't know much about how to build a script call for PHP. Do I have to create a database or is it not necessary?

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/MateusAzevedo Mar 05 '25

What is a valid serial number to you? Do you have a limited number of keys? Imagine, you have 100 keys total, when someone claims one it's marked as "used" and can't be claimed by someone else. In that case, you'll need some sort of persistent storage. A database would likely be the best solution, but even files would do, as you just need something to persist data.

Is my understanding correct? Confirm it and I can show you a high level overview of the process.