Hi,
I have an external PHP script, script.php - this script is called from the site mainsite.php in one of two possible ways:
1) From mainsite via include: include('script.php');
2) AJAX: XMLHttpRequest().open('GET','script.php',true)
Depending on where it's called from, the output from the script should be different.
What I'm looking for is thus a way to check where the script was called from (1 or 2) inside an if statement.
Any pointers for me?
Thanks, Chris