Simultaneous Users and server side XML file.
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Simultaneous Users and server side XML file. Expand / Collapse
Author
Message
Posted 2/7/2007 12:13:04 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/28/2007 9:41:09 AM
Posts: 6, Visits: 25
Hello.

My code follows your basic suggeston for php:

<?php
//We've included ../Includes/FusionCharts.php, which contains functions
//to help us easily embed the charts.

include("../Includes/FusionCharts.php");
?>
<HTML>
   <HEAD>
      <TITLE>FusionCharts - Simple Column 3D Chart</TITLE>
   </HEAD>
   <BODY>
   <?php
      //Create the chart - Column 3D Chart with data from Data/Data.xml
      echo renderChartHTML("../../FusionCharts/Column3D.swf", "Data/Data.xml", "", "myFirst", 600, 300, false);
   ?>

Using this example it seems that if multiple users hit the server at the same time they may get a chart using the data.xml file generated for another user. Is this correct?  Do you have a recommendation for session control? Or any way to ensure each user gets his own chart data?

Please advise.

Thank you.

 

JL

 

Post #298
Posted 2/8/2007 2:40:46 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194, Visits: 521
You do not need to write physical XML files on your server disk. Instead, you can virtually relay them as explained at http://www.fusioncharts.com/FusionCharts/Docs/ > Guide for Web Developers > FusionCharts and PHP.

This way each user will get his own data.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #302
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:58pm


Execution: 0.109.