|
|
|
Junior Member
      
Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15,
Visits: 29
|
|
I am new to FusionCharts. I'm working through the examples but when I try anything under PHP/BasicExamples instead of seeing the chart I see the error above. I have checked that the path to FC_Color.php and FC_Color.asp is correct. (I tested it by adding an echo statement to FusionCharts.php which is in the same directory. That statement displays when I point my browser to SingleSeries.htm). I have also tried copying FC_COLOR.php and FC_Color.asp to the same directory where SingleSeries.php sits and changing the include statement so that it only references the file and not the path. I've done this separately for both the asp and the php versions on FC_Color. It makes no difference. Has anyone else seen this issue? Can anyone help to to debug this? Thanks in advance for any insights you can share.
--Liz
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15,
Visits: 29
|
|
| All. Is this a really stupid question, or has no one any ideas on how to fix this? I'd like to understand why I'm having this issue and I'd like to get it fixed so that I can start to use Fusion Charts on my website. Any input is appreciated. Thanks!
--Liz
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 6:02:32 AM
Posts: 764,
Visits: 1,215
|
|
| Hi, Can you please send us the code and directory strucure that you are using? It is probable that FC_Colors.php is not getting included in the PHP Application. This error occurs when the file is not included or not properly loaded. If you try setting error_reporting = E_ALL in PHP.ini you could also see warning like this : Warning: include(Includes/FC_Colors.php) [function.include]: failed to open stream: No such file or directory in ...\PHP\ArrayExample\SingleSeries.php on line 7
Warning: include() [function.include]: Failed opening 'Includes/FC_Colors.php' for inclusion (include_path='.;C:\php5\pear') in ...\PHP\ArrayExample\SingleSeries.php on line 7
This issue never occured when we created and tested the code in our labs.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 4/29/2008 4:06:17 AM
Posts: 44,
Visits: 93
|
|
| You just include keyword 'php' in first line of file FC_colors.php. They have just given <? //php code?>. you just include <?php on first line .
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 6/22/2008 7:28:15 AM
Posts: 15,
Visits: 29
|
|
| Thank you both. I did make the suggested change to the first line of FC_Colors.php and I made quite sure it was in the path of the includes statement. It works now. I believe I was hitting both of these issues. I've noticed that if I move all the files that I need to include (FusionCharts.php, FC_Colors.php, FusionCharts.js and the swf file that I call) to the directory where the code resides, it usually works now. It's not an ideal way of working, I know, but as long as I can get it to do what I want, right now that's good enough. I appreciate your help, Sudipto. I did see exactly the error message you mentioned on a couple of occasions.
--Liz
|
|
|
|