Jump to content

Trying to test locally a php/ajax script


youngros

Recommended Posts

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 by youngros
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...