Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Online graph in website

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,

in my website there is a graph showing some values . that graph is taken from some other site named www.xxxx.com

graph is displayed . but the problem is that. whenever the graph changes in the www.xxxx.com , the change should also reflect in my website.

change is reflected but only after 3 , 4 hours after the graph changes in www.xxxx.com.

the change should be reflected at once , how is it possible?
below shown is the code for updating the graph
[PHP]
<? php
$ch = curl_init("http://www.xxxx.com";);
$fp = fopen("location where it is saved", "w");

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);
curl_close($ch);
fclose($fp);
?>[/PHP]


please give a solution..thanks...
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rrn rose " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
This is really important.
 
Greenhorn
Posts: 1
jQuery MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you retrieve the data what are you doing with it ? can you post that portion of PHP too ?
    Bookmark Topic Watch Topic
  • New Topic