• 0

[PHP] Uptime Project - Custom Image Generator


Question

a couple of people have been asking about the script, so that they can host it themselves.. so here it is.

it works right off the bat, but you might want to customize it to your liking..

here's how it would look like (unmodified):

script.php

here's how it could look like (modified):

12409.png

Requirements:

A host/server that supports PHP + GD Image Libaries

Enjoy, and feel free to ask any questions.

script.php

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

  • 0
Did you base that on my sig source originally?

Looks a lot like the format of my code :D (not that I care, mind you :) )

Nope. But any resemblence is purely coincidental. :)

Link to comment
Share on other sites

  • 0

If only I knew PHP - then I'd be able to make a VBScript generator :/. Anyhoo - can you give some details, I might be able to add that to my list of automation-to-do.

Link to comment
Share on other sites

  • 0

Thx for releasing it, few questions:

- Anything need to be chmoded?

- Do you need to create uptime.dat or will it fwrite one?

- I've uploaded it, changed my UID etc - But it just creates the 500 x 300 PNG saying "Can't write to file". Am I missing something?

Edit: n/m - chmoded uptime.dat to 777 and it works. Now to sort out some skins ^_^

Link to comment
Share on other sites

  • 0
If only I knew PHP - then I'd be able to make a VBScript generator :/. Anyhoo - can you give some details, I might be able to add that to my list of automation-to-do.

What sort of details do you need? hit me up on MSN.

Thanks for the script BxBoy... I haven't touched PHP since 2001 when I did my own SQL+PHP backed website... ah the good ol' days

yea, I want to switch to a mySQL database, I think that is more effecient than using files to store the data. :yes:

Edit: n/m - chmoded uptime.dat to 777 and it works. Now to sort out some skins ^_^

Looks great. thumb.gif

Link to comment
Share on other sites

  • 0
Never done much with GD, mind sharing how to make it use a TTF font?

sure, replace the imagestring function with the imagettftext function..

example:

imagettftext($im, 11, 0, 227, 20, $black, "lucon.ttf", $xml[username]);

^^^ imagettftext(image, font size, angle, x-coor, y-coor, color, font file, variable/string/text)

Link to comment
Share on other sites

  • 0

I know the question was answered above, but how do I change the font? I want to use Verdana, the same as in my sig.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.