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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -