Call Home Function
Posted: Mon Aug 23, 2004 2:13 pm
Hi,
Im having trouble finding some hints on how to create a call home function to use in my php scripts and phpnuke themes.
What i want it to do, is first of all, on install is connect to my server which will have a script which will add the php server name/ip to the database, with a binary option which is for setting the allowed use of the script to on /off, definable by me in a admin panel.
This option is set to On by default, and turn off able by me, if it is a illegal usage.
Then in the php which the user will use, which is encrypted, will be a function which calls my server to see if usuage is ok or not, and if it isnt, it exits to a page saying illegal usage.
The part that I am stuck on is the call home functions, i.e do i create a function which includes a file on my server, which will connect to the db, to check that the installation is valid or not, or use some kind of socket port?
Any help will be most appreciated.
Im having trouble finding some hints on how to create a call home function to use in my php scripts and phpnuke themes.
What i want it to do, is first of all, on install is connect to my server which will have a script which will add the php server name/ip to the database, with a binary option which is for setting the allowed use of the script to on /off, definable by me in a admin panel.
This option is set to On by default, and turn off able by me, if it is a illegal usage.
Then in the php which the user will use, which is encrypted, will be a function which calls my server to see if usuage is ok or not, and if it isnt, it exits to a page saying illegal usage.
The part that I am stuck on is the call home functions, i.e do i create a function which includes a file on my server, which will connect to the db, to check that the installation is valid or not, or use some kind of socket port?
Any help will be most appreciated.