RealTime chart: No data received
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



RealTime chart: No data received Expand / Collapse
Author
Message
Posted 5/2/2008 6:27:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/2/2008 6:55:40 PM
Posts: 4, Visits: 10
My dataUrlStream uses a php script as its data source. If I hard-code this print statement in php:

print "&label=16:00:26&value=15&ignoreAll"

I'm able to see the data plotted on the graph. However, if I try to execute this slightly more intelligent script, which reads a file and prints its contents after removing a the trailing newline:

$myFile = "data.txt"; <-(data.txt contains "&label=16:00:26&value=15&ignoreAll")
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$trimmed = rtrim($theData, "");
echo $trimmed;

The debug window gives me the following message:

"No data received: The chart couldn't find any data values in the real-time feed."

I can run the script from the command line and watch it print the identical line as above. But for some unholy reason, my RealTime chart doesn't receive it. Any ideas why this script won't work, but the previous one will?
Post #6075
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:07am


Execution: 0.188.