Jump to content

Is this PHP or something else?


ImJustBrndn

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
Link to comment
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.
Link to comment
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?
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.