tags:

views:

17

answers:

1

Hello,

I have a homebase script, that I have many other scripts ping for information using the CURL method. I need to determine the domain name of the callers. Can I do this with tricks just on my homebase script?

. using php .

Hudson

A: 

You could send a custom HTTP header with your CURL request that contains the script name, something like

X-SCRIPT-NAME myscript.php

I don't think CURL automatically adds something about the calling script, so you would have to edit the scripts for this.

Peter Kruithof