fafa0 Posted July 30, 2014 Share Posted July 30, 2014 Hello I'm new in PHP but I need a help If it possible. I want to Know which domain used my php script . For example when some one run installer or run index.php an email send to me that contain the domain name. Or some thing like this that I used for any php code. so thanks Quote Link to comment Share on other sites More sharing options...
trq Posted July 31, 2014 Share Posted July 31, 2014 I find it hard to believe you have a script but can't write this functionality. Where are you stuck exactly? Quote Link to comment Share on other sites More sharing options...
fafa0 Posted July 31, 2014 Author Share Posted July 31, 2014 I want know which site use my script or theme. We can : 1. put google analytic code in admin area so we will know . 2. use a image in admin area that load from a domain (e.g.: aaaa.com/logo.jpg) and we can go to Cpanel and see "lasted visit" and see "referral site" but I want to use a code that just one time send me domain and I know how many site used my php themes or scripts. Quote Link to comment Share on other sites More sharing options...
SergeiSS Posted July 31, 2014 Share Posted July 31, 2014 but I want to use a code that just one time send me domain and I know how many site used my php themes or scripts. Everyone can remove this code and you won't get to know that script was used. Quote Link to comment Share on other sites More sharing options...
trq Posted July 31, 2014 Share Posted July 31, 2014 Again, Where are you stuck exactly? It seems a pretty simple requirement. Quote Link to comment Share on other sites More sharing options...
phpPeter Posted August 1, 2014 Share Posted August 1, 2014 Just write a simple log-service, which will get the domain and/or IP as parameter from your script on the remote site. The log-server just logs each call into the database with the given domain and the current timestamp. Then you will have all infos you need. Include a simple call to the log service on your server (e.g. http://yourserver/log?IP=123.34.45.56), that's all. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.