youngros Posted August 14, 2009 Report Share Posted August 14, 2009 (edited) I have a weather station that until the anemometer failed was running live (or almost) A way of running it more up to date was to use a php/ajax script that is available. Now all the instructions are for testing this live, which is not what I want to do. Much prefer to test locally to iron all the bugs out. I also runs partially through a program called Weather Display, which uploads all the data. When I try to run it locally I am getting the error of Undefined index: REMOTE_HOST in C:\wamp\www\madeira_weather\Settings.php on line 35 this is the code on the php script # Automatic Info we might need ############################################################################ $SITE['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR']; $SITE['REMOTE_HOST'] = $_SERVER['REMOTE_HOST']; $SITE['WEBROOT'] = $_SERVER['DOCUMENT_ROOT']; $SITE['REQURI'] = $_SERVER['REQUEST_URI']; $SITE['SERVERNAME'] = $_SERVER['SERVER_NAME']; any ideas on how to sort this out would be appreciated, thanks. Edited August 14, 2009 by youngros Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.