?
Solved

PHP and Graphing (JPGraph or GD lib)

Posted on 2003-11-10
4
Medium Priority
?
2,117 Views
Last Modified: 2013-12-13
Hi all,

I have 3 questions open plus this one.  I am trying to get some graphical displays (line, bar, etc) working in PHP.
I have most of my project done ( main page, queries, etc) except the darn graphing.  If you think you can help me.  I will get you the points.  I cant send any real data but I can send the code and/or recieve example code (translate it and augment it to my needs... i hope).  Im kinda stuck on this and running out of time.  If you think you can help, then let me know.

Thanks
knel
0
Comment
Question by:knel1234
  • 2
4 Comments
 
LVL 6

Expert Comment

by:DoppyNL
ID: 9714503
Instead of posting you've got a problem; it might be an idea to post the actual problem.
Nobody can help without knowing what the problem is!!!

I've got no idea if I can help as long as I don't know what the problem is!
0
 
LVL 3

Author Comment

by:knel1234
ID: 9714605
DoppyNL,

I am trying to get graphing working with PHP.  I have a main page the via a submit button calls a php file that fetches data.  This all works.  I can display it in table form.  However, I cannot get any graphing to work.  I only have 4 weeks experience with PHP so its possible this could be a silly problem.  I have included links to a few other questions that I have asked.  I will try to as much information as possible.  Again the problem is that I cannot get graphing to work.

My environment:
Window XP prof, php 4.3.1, JPGraph (download 2 weeks ago)

What I have done:
Installed XP, setup IIS, installed 4.3.1 (phpinfo works etc), verified phpinfo(), verified that the GD dlls were uncommented and available for use.

Previous questions (points not awarded yet):
http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_20789748.html
http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_20789211.html
http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_20766288.html



My other questions might give more/different information
but I basically get this error

Fatal error: Please select an image type!


I am willing to give the points from the other questions and or add more points to this one...

Again... I just need to be able to display some DB information (sizing, number of rows, etc) graphically.
and I CANT get JPGraph nor can I get GD to work.

thanks
knel


0
 
LVL 4

Accepted Solution

by:
intrwrks earned 150 total points
ID: 9715645
Knel,

Try this link. I threw this together about two years ago for one of my clients. It is a mess but does only what we needed it to do.

http://www.internalworks.com/graph/test.txt

The directory that you run this from will need to have a blank image file called graph.jpg. This file will need to have Change permissions. I wrote this script to overwrite a pre-existing image file.

Hope this will help you get your own graph up-and-running.
0
 
LVL 3

Author Comment

by:knel1234
ID: 9723263


Im having trouble translating some things but this definitely helps

Thanks
knel
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question