Jump to content


Photo

Is this PHP or something else?


  • Please log in to reply
7 replies to this topic

#1 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 20 August 2006 - 09:00 PM

The image at http://joekral.needs...uge/30000/18012

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

Example:

http://joekral.needs...uge/30000/18012

http://joekral.needs...uge/30000/25000

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

B

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 20 August 2006 - 10:08 PM

Could be any number of languages, but yes its doable with php. Check the gd library.

#3 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 20 August 2006 - 10:47 PM

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.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#4 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 20 August 2006 - 10:49 PM

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.

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 20 August 2006 - 11:11 PM

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?
Legend has it that reading the manual never killed anyone.
My site

#6 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 20 August 2006 - 11:38 PM

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

#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 20 August 2006 - 11:41 PM

Here's a gentle phpfreaks tutorial - http://www.phpfreaks...rials/105/1.php
Legend has it that reading the manual never killed anyone.
My site

#8 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 20 August 2006 - 11:45 PM

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...c,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

http://www.entropyfa...00&current=1200

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

B




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users