Call to remote server in core files |
[eluser]zeedy2k[/eluser]
Can anyone help me... I need to know if there is a way of implementing a 'call home' feature in a core file of codeigniter so I can check where my script is installed and what is the best way of doing it. Thanks in advance. Robert
[eluser]Randy Casburn[/eluser]
@zeedy2k, you might get better mileage out of a licensing scheme that has less of a chance of alienating your clients/customers. You know, lock your code to a specific domain type of thing. That way you'll have to know where it is before it _can_ work. Just a thought. Randy [Edited: for the name. Sorry zeedy2k]
[eluser]Colin Williams[/eluser]
You could write a pre-system hook that "phones home" Code: if (file_get_contents('http://www.example.com/check.php') != "1") And I'm sure you could dream up the code at http://www.example.com/check.php Might be somewhat effective.
[eluser]zeedy2k[/eluser]
Actually put something similiar to that as I dont want to go down the route yet of iono licensing. If I was to go down the route of iono licensing can I put the check of the code into a core CI file? Robert
[eluser]Colin Williams[/eluser]
I think as long has you obey the CI license, there would be no problem with that.
[eluser]Randy Casburn[/eluser]
@zeedy2k -- I use the newest version of the nuSphere NuCoder tool to for distribution. Handles these issues with ease and allows you to honor CI's license along the way. Randy |
Welcome Guest, Not a member yet? Register Sign In |