PDA

View Full Version : PHP license system...



Hitman
23-01-2008, 01:40 PM
Hey, I want to know how can you make it so you can check the database of one server on another with php? If you get me.

Say like you have a script you need a license for, and you use it then a certain file will check against the database (which is on another server) to see if the license is there. How is it done...? Of course, the files that checks will be PHP and will do something like "SELECT * FROM `licenses` WHERE `license` = *licensenumber*" or whatever... but how to get from one db to another, and does it pose any security risks?

If that isn't possible what I'm thinking is it could work with a text file, but I'd rather a sql database.

Thanks!

Want to hide these adverts? Register an account for free!