Current location: Hot Scripts Forums » Programming Languages » PHP » Code for weather


Code for weather

Reply
  #1 (permalink)  
Old 01-01-09, 04:27 AM
glummyro glummyro is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Code for weather

Hy

What code can be used to steal weather after this link?

http://www.meteoromania.ro/index.php?id=58&oras=15422

Reply With Quote
  #2 (permalink)  
Old 01-01-09, 05:06 AM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 413
Thanks: 12
Thanked 3 Times in 3 Posts
well u couldnt really " Steal " from there but cURL would do it. :S you could get the weather from that picture if you knew what you where doing

good luck
mike
Reply With Quote
  #3 (permalink)  
Old 01-01-09, 05:27 AM
glummyro glummyro is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I tried with this code

Code:
<?php
echo "<center>";
if (!isset($_POST["Oras"])) {
    $_POST["Oras"] = "15420";
} 



include("localitate1.php");
$url="http://www.inmh.ro/index.php?id=58&oras=".$_POST["Oras"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
$xml = curl_exec ($ch);
curl_close ($ch); 


$tmp = fopen("tmptest.html", "w+");
//$tmp = tmpfile();
fwrite($tmp,$store);
rewind($tmp);
fclose($tmp);
echo '<table>
    <tr>';
echo passthru('cat tmptest.html|grep \'<td colspan=3 align="center"><strong>\' -A 43' );
echo "</table>";
?>
I do not know what code can be used to show in this html just weather
Reply With Quote
  #4 (permalink)  
Old 01-01-09, 10:25 AM
glummyro glummyro is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
who want help me with this problem ?
Reply With Quote
  #5 (permalink)  
Old 01-01-09, 12:00 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
It's probably best just to mark this post as solved and go find another forum as breaking copyrights are a big NO.

Kind regards
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #6 (permalink)  
Old 01-01-09, 04:20 PM
glummyro glummyro is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Not infringe copyright, as there is a link partnership between me and them!
Reply With Quote
  #7 (permalink)  
Old 01-01-09, 04:25 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Well in that case you shouldnt use the word "steal" in your original post and if you contact the site admin I'm sure they would be happy to help you.

I'm out on this one

Kind Regards
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #8 (permalink)  
Old 01-01-09, 04:35 PM
glummyro glummyro is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
partnership in romania is :

I take an object, but to say where he is taken ...

So, if I take weather from www...., it will be a message .. Weather retrieved from www ....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With Code Elle0000 PHP 1 10-27-06 02:42 PM
Need help finding PHP code errors Elle0000 PHP 4 10-08-06 01:31 PM
HTML code file update on the webserver using CGI script sujata_ghosh Perl 31 07-06-06 03:06 AM
Explanation of Code... Please davidk19380 Perl 1 02-26-06 01:50 PM


All times are GMT -5. The time now is 08:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.