Shree M. & N. Virani Science College,
Dept. of Computer, Rajkot
BIT Project 11
Tuesday, 27 December 2011
Email Settings API Developer's Guide
Posted by
Pradip G. Vanparia (Asst. Professor)
Shri M & N Virani Science College, Rajkot at 18:37 No comments:
Shri M & N Virani Science College, Rajkot at 18:37 No comments:
Sunday, 7 August 2011
google-weather-api_1
<?php
function getWeather() {
$requestAddress = "http://www.google.com/ig/api?weather=rajkot&hl=id";
// Downloads weather data based on location - I used my zip code.
$xml_str = file_get_contents($requestAddress,0);
// Parses XML
$xml = new SimplexmlElement($xml_str);
?>
<div>
<?php $xml->weather->current_conditions->temp_c['data'];?>°
</div>
<div style="font-size: 12px; font-weight: none;"><?php $xml->weather->current_conditions->condition['data']?></div>
<br clear="both"/>
<div style="font-size: 20px;">° C</div>
<?php
// Loops XML
$count = 0;
echo '<div id="weather">';
foreach($xml->weather as $item) {
foreach($item->forecast_conditions as $new) {
echo '<div>';
echo $new->day_of_week['data'];
echo '<img src="http://www.google.com/' .$new->icon['data'] . '"/><br/>';
echo $new->low['data'].' | '.$new->high['data'];
echo '</div>';
}
}
echo '</div>';
}
getWeather();
?>
function getWeather() {
$requestAddress = "http://www.google.com/ig/api?weather=rajkot&hl=id";
// Downloads weather data based on location - I used my zip code.
$xml_str = file_get_contents($requestAddress,0);
// Parses XML
$xml = new SimplexmlElement($xml_str);
?>
<div>
<?php $xml->weather->current_conditions->temp_c['data'];?>°
</div>
<div style="font-size: 12px; font-weight: none;"><?php $xml->weather->current_conditions->condition['data']?></div>
<br clear="both"/>
<div style="font-size: 20px;">° C</div>
<?php
// Loops XML
$count = 0;
echo '<div id="weather">';
foreach($xml->weather as $item) {
foreach($item->forecast_conditions as $new) {
echo '<div>';
echo $new->day_of_week['data'];
echo '<img src="http://www.google.com/' .$new->icon['data'] . '"/><br/>';
echo $new->low['data'].' | '.$new->high['data'];
echo '</div>';
}
}
echo '</div>';
}
getWeather();
?>
Posted by
Pradip G. Vanparia (Asst. Professor)
Shri M & N Virani Science College, Rajkot at 23:10 No comments:
Shri M & N Virani Science College, Rajkot at 23:10 No comments:
google-weather-api
<div dir="ltr" style="text-align: left;" trbidi="on">
<h1>
<?php print $information[0]->city['data']; ?></h1>
<h2>
Today's weather</h2>
<div class="weather">
<img src="<?php 'http://www.google.com' . $current[0]->icon['data']?>" alt="weather"?>
<span class="condition">
<?php echo $current[0]->temp_f['data'] ?>° F,
<?php echo $current[0]->condition['data'] ?>
</span>
</div>
<h2>
Forecast</h2>
<?php foreach ($forecast_list as $forecast) : ?>
<div class="weather">
<img src="<?php 'http://www.google.com' . $forecast->icon['data']?>" alt="weather"?>
<div>
<?php echo $forecast->day_of_week['data']; ?></div>
<span class="condition">
<?php echo $forecast->low['data'] ?>° F - <?php $forecast->high['data'] ?>° F,
<?php echo $forecast->condition['data'] ?>
</span>
</div>
<?php endforeach ?>
</div>
<h1>
<?php print $information[0]->city['data']; ?></h1>
<h2>
Today's weather</h2>
<div class="weather">
<img src="<?php 'http://www.google.com' . $current[0]->icon['data']?>" alt="weather"?>
<span class="condition">
<?php echo $current[0]->temp_f['data'] ?>° F,
<?php echo $current[0]->condition['data'] ?>
</span>
</div>
<h2>
Forecast</h2>
<?php foreach ($forecast_list as $forecast) : ?>
<div class="weather">
<img src="<?php 'http://www.google.com' . $forecast->icon['data']?>" alt="weather"?>
<div>
<?php echo $forecast->day_of_week['data']; ?></div>
<span class="condition">
<?php echo $forecast->low['data'] ?>° F - <?php $forecast->high['data'] ?>° F,
<?php echo $forecast->condition['data'] ?>
</span>
</div>
<?php endforeach ?>
</div>
Posted by
Pradip G. Vanparia (Asst. Professor)
Shri M & N Virani Science College, Rajkot at 23:06 No comments:
Shri M & N Virani Science College, Rajkot at 23:06 No comments:
Saturday, 23 July 2011
Abstract
“Now world is become more compact, that one would far away with another person because of Internet and wireless communication”
“We have become a spectator society, one that experience excellence and creativity only by watching it on television or by reading about it in newspaper or magazines. Perhaps the best way of becoming something more than a spectator is to pursue activities that do not receive mass media coverage. We can invent our own art, forms, or at least re-label existing forms as art. Thought this is very old and very common, is an excellent art form, Patterns of points and blots undergo poignant mutations. The player strains to work with them, to control them. One’s identity is not entirely intrinsic, nor is it purely acquired. We can shape ourselves just as we can shape our surroundings. By playing this dice game, that is – by creating patterns of blots and points – I help to shape my identity, I set myself apart from the spectators. I become alive.”
“Online Mobile Dice Game” is also step towards this. This is a dice game that user can play game with another user online. Two people at different location can play the game online using this system. You just need to have GPRS enabled mobile.
This document represent you how mobile game is made and how it works.
“We have become a spectator society, one that experience excellence and creativity only by watching it on television or by reading about it in newspaper or magazines. Perhaps the best way of becoming something more than a spectator is to pursue activities that do not receive mass media coverage. We can invent our own art, forms, or at least re-label existing forms as art. Thought this is very old and very common, is an excellent art form, Patterns of points and blots undergo poignant mutations. The player strains to work with them, to control them. One’s identity is not entirely intrinsic, nor is it purely acquired. We can shape ourselves just as we can shape our surroundings. By playing this dice game, that is – by creating patterns of blots and points – I help to shape my identity, I set myself apart from the spectators. I become alive.”
“Online Mobile Dice Game” is also step towards this. This is a dice game that user can play game with another user online. Two people at different location can play the game online using this system. You just need to have GPRS enabled mobile.
This document represent you how mobile game is made and how it works.
Posted by
Pradip G. Vanparia (Asst. Professor)
Shri M & N Virani Science College, Rajkot at 04:41 No comments:
Shri M & N Virani Science College, Rajkot at 04:41 No comments:
Subscribe to:
Posts (Atom)