Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes PHP and the fly likes Online graph in website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "Online graph in website" Watch "Online graph in website" New topic

Online graph in website

rrn rose

Joined: Apr 14, 2009
Posts: 10
hi all ,

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

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

change is reflected but only after 3 , 4 hours after the graph changes in

the change should be reflected at once , how is it possible?
below shown is the code for updating the graph
<? php
$ch = curl_init("");
$fp = fopen("location where it is saved", "w");

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


please give a solution..thanks...
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2716

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

|Asking Good Questions|
soft chris

Joined: Mar 29, 2011
Posts: 1

Once you retrieve the data what are you doing with it ? can you post that portion of PHP too ?

Chris, developer,
Software company. Web developers.
Don't get me started about those stupid light bulbs.
subject: Online graph in website