Redtie

Redtie

beta
www.redtie.ro

Creative coding...


Redtie Weather

10-03-2009 by Admin

Taking 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.

  1. Upload all files and folders to the server
  2. Sign up for a free account at http://www.weather.com/services/xmloap.html
  3. Configure the config.php file on your server
  4. 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
?>

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.

0 Comments



  • Your username will be shown. Your email address will not be shown. If this is your first comment, it will be verified for spam before it will appear in the blog.

Search

Categories

Login

Tag cloud