Converting google spreadsheet for use in xcelsius dashboard
Posted: Mon Nov 15, 2010 4:24 pm
Hi,
I've been pulling my hair out trying to make this happen and I was hoping someone can help me out. I want to make a google spreadsheet accessible through a swf created in xcelsius and I'm running into Flash security issues. So I thought I would write a php script that would open the spreadsheet and save it as an html document, which would be read by the xcelsius swf. I'm probably missing something here, but here's the code I came up with.
<?php
$src = fopen('http://spreadsheets.google.com/pub?key= ... FYyRTVyT2c', 'r');
$dest1 = fopen('goals.html', 'w');
stream_copy_to_stream($src, $dest1);
?>
Here's the error I get:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/focusdco/public_html/TwoRiversPCS/goals3.php on line 10
I've been pulling my hair out trying to make this happen and I was hoping someone can help me out. I want to make a google spreadsheet accessible through a swf created in xcelsius and I'm running into Flash security issues. So I thought I would write a php script that would open the spreadsheet and save it as an html document, which would be read by the xcelsius swf. I'm probably missing something here, but here's the code I came up with.
<?php
$src = fopen('http://spreadsheets.google.com/pub?key= ... FYyRTVyT2c', 'r');
$dest1 = fopen('goals.html', 'w');
stream_copy_to_stream($src, $dest1);
?>
Here's the error I get:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/focusdco/public_html/TwoRiversPCS/goals3.php on line 10