Jump to content

Archived

This topic is now archived and is closed to further replies.

ImJustBrndn

Is this PHP or something else?

Recommended Posts

The image at http://joekral.needshelp.org/gauge/30000/18012

can be displayed with a filling bar, if you change the last set of number it automatically fills in the bar.

Example:

[img]http://joekral.needshelp.org/gauge/30000/18012[/img]

[img]http://joekral.needshelp.org/gauge/30000/25000[/img]

If this is PHP could someone maybe point me in the right direction to do this.

B

Share this post


Link to post
Share on other sites
Could be any number of languages, but yes its doable with php. Check the [url=http://php.net/gd]gd[/url] library.

Share this post


Link to post
Share on other sites
I imagine there are three images for the fill bar:
* The left hand side right part to fit the curve.
* A 1px wide red strip that is stretched across.
* The right hand red curve that is drawn at the end of the fill bar.

It wouldn't be too hard to see this implemented in PHP with GD, yup.

Share this post


Link to post
Share on other sites
What exactly is GD, I'm totally new to php and would like to create something like this, but I think it might be a wee bit above my level at the moment. Any suggestions would be very helpful.

Share this post


Link to post
Share on other sites
What is GD?  A graphics library, frequently compiled with php by good web hosting companies.  Details in the link in Thorpe's post.

Before you dig too deeply ... do you actually have GD installed on your web server?

Share this post


Link to post
Share on other sites
Yes, I have it installed version gd-2.0.33. I'm just really new to the whole php thing, and really never know where to start. Do a lot of my learning from looking at something that is already made and picking it apart.

B

Share this post


Link to post
Share on other sites
Here's a gentle phpfreaks tutorial - http://www.phpfreaks.com/tutorials/105/1.php

Share this post


Link to post
Share on other sites
Thanks a lot guys, after going through about 30 pages of searchs on the site I found this other post that no one ever responded too.

http://www.phpfreaks.com/forums/index.php/topic,102840.0.html

It has a complete script in it from another site that shows you how to do an image just like this. The image it has in it is

[img]http://www.entropyfarm.org/software/thermo/thermo.php?max=3000&current=1200[/img]

So if anyone is interested there you go, thanks for the extensive help everyone.

B

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.