Creating charts in PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jwholey
Forum Newbie
Posts: 1
Joined: Wed Jul 16, 2008 2:22 pm

Creating charts in PHP

Post by jwholey »

Hello all,

I'm relatively new to PHP. I'm running PHP5.1.6 on Fedora Core 6. I'm looking for freeware that can create nice charts for me. I downloaded libchart-1.2.1. It has a pre-req of PHP5, compiled with GD 2+ and FreeType 2+. I don't know if I have those pre-reqs and am not sure how to determine if I do or not.
So... my question is, how can I tell what PHP was compiled with... and more importantly, can anyone recommend a relatively simple freeware PHP charting tool. (i.e. that doesn't require me to recompile PHP). Thanks.

Regards, Joe
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Creating charts in PHP

Post by jaoudestudios »

create a php file with the code below in it, view the file through your browser and it will give you your configuration information

Code: Select all

 
<?php
echo phpinfo();
?>
 
Amit Rathi
Forum Newbie
Posts: 7
Joined: Fri Jul 25, 2008 6:17 am
Location: India

Re: Creating charts in PHP

Post by Amit Rathi »

First Check phpinfo;
if GD library not shown in this file output. Check settings in php.ini

With this version you need not to recompile PHP with GD library. you just need to check php.ini



jwholey wrote:Hello all,

I'm relatively new to PHP. I'm running PHP5.1.6 on Fedora Core 6. I'm looking for freeware that can create nice charts for me. I downloaded libchart-1.2.1. It has a pre-req of PHP5, compiled with GD 2+ and FreeType 2+. I don't know if I have those pre-reqs and am not sure how to determine if I do or not.
So... my question is, how can I tell what PHP was compiled with... and more importantly, can anyone recommend a relatively simple freeware PHP charting tool. (i.e. that doesn't require me to recompile PHP). Thanks.

Regards, Joe
Post Reply