Solved

PHP and Graphing (JPGraph or GD lib)

Posted on 2003-11-10
4
2,066 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 50 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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now