HBeta
07.15.06, 03:57 PM
Hello,
I have a question for you code-gurus around here...
I have a website called VernalHost.com. I am about to begin production on a script that is going to require license verification before the user is able to use the script. What I want to do is create a MySQL database on the VernalHost.com server, and then let that database hold all of the license information, such as the username, script name, license number, domain the script can be used on, ip address for the server, etc.
Then, what I want in the script is something like a file called license.php that no matter what server it's installed on, it will connect to the VernalHost.com MySQL database and check a couple of different parameters, such as the license number, the domain it's trying to be installed on, etc.
So, say that someone on the google.com server wanted to use my script. They'd go through google.com/script/install.php to install it, enter their license, etc.
Then, say they tried to access google.com/script/index2.php ... The index2.php file will hold the require("license.php"); tag, that way everytime they try to access a part of the script, it always connects to the VernalHost database to verify the license.
Does this all make sense?
If so, what would be the code snippet to connect to the database across different servers?
Thanks to you all for the help...
Ricky
I have a question for you code-gurus around here...
I have a website called VernalHost.com. I am about to begin production on a script that is going to require license verification before the user is able to use the script. What I want to do is create a MySQL database on the VernalHost.com server, and then let that database hold all of the license information, such as the username, script name, license number, domain the script can be used on, ip address for the server, etc.
Then, what I want in the script is something like a file called license.php that no matter what server it's installed on, it will connect to the VernalHost.com MySQL database and check a couple of different parameters, such as the license number, the domain it's trying to be installed on, etc.
So, say that someone on the google.com server wanted to use my script. They'd go through google.com/script/install.php to install it, enter their license, etc.
Then, say they tried to access google.com/script/index2.php ... The index2.php file will hold the require("license.php"); tag, that way everytime they try to access a part of the script, it always connects to the VernalHost database to verify the license.
Does this all make sense?
If so, what would be the code snippet to connect to the database across different servers?
Thanks to you all for the help...
Ricky