Redtie Weather
10-03-2009 by AdminTaking the notion of "easy to use" further, we made implementing Redtie Weather as easy as can be. By following this 4 steps installation, anyone can have weather on their site in minutes, without any PHP knowledge needed.
- Upload all files and folders to the server
- Sign up for a free account at http://www.weather.com/services/xmloap.html
- Configure the config.php file on your server
- CHMOD directories parser/cache/cc, parser/cache/dayf, parser/cache/search to 0777
The only peace of code needed to show the script is the one bellow:
//Redtie Weather, it's this simple:
//Include functions
include("functions.php");
//Search form
render_search();
if($_REQUEST['search']){
//Search results
search($_REQUEST['search']);
}else{
//Forecast
forecast($loc_id,5,"m");
}
//That's all
?>
//Include functions
include("functions.php");
//Search form
render_search();
if($_REQUEST['search']){
//Search results
search($_REQUEST['search']);
}else{
//Forecast
forecast($loc_id,5,"m");
}
//That's all
?>
In order for it to work, it needs to be placed in the index.php file, where you want the script to be displayed. This file needs to be on the same level with functions.php, config.php, parser, lang and images. Any type of valid html and css can be used in the index.php file along side the code.
For any help or guidance, comment on this article or contact us.