I have a script that will only be called by a image tag (the script is for retrieving and resizing images).
The issue is that the script could be called from 2 different servers (live and development) and based upon which server the script is called from, I want to choose which mysql database to connect to.
Is this possible? When I use $_SERVER['REMOTE_ADDR'] it will give me the address of the machine I am on, not the address of the machine the script was called from.
We are using PHP4.
thanks for the help
Patrick Davis
Web Master
northernstar.info
Northern Star Newspaper