View unanswered posts | View active topics It is currently Tue May 14, 2024 10:13 pm



Reply to topic  [ 2 posts ] 
Using with Drupal? 
Author Message
New pChart user
New pChart user

Joined: Fri Oct 21, 2011 8:12 am
Posts: 1
Post Using with Drupal?
Hi All,

I'd like to use PChart with Drupal, but I had a lot of problems on my first attempt. First I had an issue with figuring out how to get the include path to work, but I think I found the answer to that. The next issue thought was font file paths, I thought I could maybe set the full path for the fonts in the chart code, but then I get errors about the fonts used in the .class files and I'm really not sure how to solve those. The one file says something about Format[$font] with no path, maybe it's addressing the other second file that is giving an error I don't know.

Anyone have a set of instructions on how to get the includes and font paths to work with Drupal??

Thanks!

J

(I should also note I'm a noob at coding but I think I'm picking it up quickly)


Fri Oct 21, 2011 8:17 am
Profile
New pChart user
New pChart user

Joined: Mon Feb 13, 2012 4:29 pm
Posts: 2
Post Re: Using with Drupal?
Hi caljay,

default path is your root directory of your web server (usually www folder if you're using wamp or xampp)

for example: if your class file is in /www/data/class/classfile.php

you should include like so:
Code:
include('data/class/classfile.php');


Mon Feb 13, 2012 4:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron