Hey,
How would you make a script that if the scipt on the users server cant find anything (Eg Licence Key) it will lock the domain or script (like a license system)
Danny
Printable View
Hey,
How would you make a script that if the scipt on the users server cant find anything (Eg Licence Key) it will lock the domain or script (like a license system)
Danny
Yeah i know i was just wondering so i can try myself XD not to relece or anything im lerning php
Im just looking for the locking site of thins as help
You could do a *simple* script with file_get_contents to get a file on your server that checks the server, ip, and or folder and returns something.
PHP Code:<?php
$server = "bob.com";
$get_l = file_get_contents("http://www.myserver.com/license/check.php?server=$server");
if ($get_l == "expired")
{
echo "Your licence has expired.";
exit;
}
if ($get_l == "none")
{
echo "Thats no license!";
exit;
}
?>
Yeah i see that that will echo it but i dont think it will stop the user from doing anything =S
If you take and make that into a script, and include it into the configuration file.. then Zend Encode it, it will stop the script from ever running using exit; ;)
Oh, one last think what would the server end look like :S (as in my end)
Soz for dubble post cant edit other 1
Can anyone help me wid this?
Server end, do you know how to use MySQL?
Yes i do =D i just need some guidance