php - Get URL of external site accessing my file -
i have script on server many sites use: mysite.com/counter.php
other sites using file command "file_get_contents" how can url of sites accessing file?
i echo via mysite.com/counter.php file whenever external sites accessing it:
thank other_site_url_here using our script
it can't done file_get_contents
, consider using tokens database. people want script register , special token. then, they'd use script tokenized url, like: mysite.com/myscript/fs9dfyb87sdf8s
. able collect stats token.
Comments
Post a Comment