How can I get the name of the page that requested a image or script file? I want to provide files only to certain pages. For example, in my page 'http://server/path/page1001.php'
I have the code:
I want that only the page with the url 'http://server/path/page1001.php'
to display my files ('scripts.php?id=2' and 'images.php?id=4').
How can I do that? Is there a way? It has to be one!