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
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
Last edited by Luno1599; 17-11-2007 at 04:46 PM.
CPU i5 3570 @ 4.2 GHz | Mobo GigaByte Z77D3H | RAM 8GB | GPU AMD Radeon 6870 | OS Win 8 64-bit | HD 1TB HD and 128GB SSD | Wheel Logitech G27
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)
Last edited by Luno1599; 17-11-2007 at 05:05 PM.
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
Want to hide these adverts? Register an account for free!