For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > php graphs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php graphs
JMcC

2006-01-22, 7:02 pm

Hello,

I have a web form that submits a number of values to a php script. At
the moment all it does is e-mails these results to an e-maill address
using the mail() function.

What I would really like it to do is use the 5 values generated int the
script to create a bar graph and then attach this to an e-mail and send
this as well as the results in text form. I have hunted around the net
and the only code I can find so far to generate a graph is either very
complecated looking or is part of a package I would have to buy. I was
wondering if there was a function in php like the graph function in the
GD::Graph::bars package and something that works like the MIME::Lite
package for attaching a picture to an e-mail.

Any help would be greatly appreciated

Thanks and regards

JMcC

Colin McKinnon

2006-01-22, 7:02 pm

JMcC wrote:

>
> What I would really like it to do is use the 5 values generated int the
> script to create a bar graph and then attach this to an e-mail and send
> this as well as the results in text form. I have hunted around the net
> and the only code I can find so far to generate a graph is either very
> complecated looking or is part of a package I would have to buy. I was
> wondering if there was a function in php like the graph function in the
> GD::Graph::bars package and something that works like the MIME::Lite
> package for attaching a picture to an e-mail.
>
> Any help would be greatly appreciated
>


Generating the *chart* and attaching it are two seperate things - you're not
likely to find a package to do both.

Jpgraph is IME the best PHP charting package - indeed better than any I've
used on other platforms too. Its free to use in some circumstances, and
where it's not free to use, a licence caosts a lot less than any other
method of getting the same result.

C.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com