Raised This Month: $ Target: $400
 0% 

Website Server Status


Post New Thread Reply   
 
Thread Tools Display Modes
DopeFish
Senior Member
Join Date: Feb 2004
Old 01-04-2005 , 15:57  
Reply With Quote #11

the only gdf fonts I could find were theese http://www.widgnet.com/gdf_fonts/fonts.html
but they are't all to great (and most of them too lage for signature images).
using imagettftext() might by an alternative.
DopeFish is offline
Send a message via ICQ to DopeFish
manorastroman
Senior Member
Join Date: Oct 2004
Old 01-04-2005 , 16:04  
Reply With Quote #12

dopefish, do you think you can make me a sig like that for my server?
__________________
manorastroman is offline
Send a message via AIM to manorastroman Send a message via MSN to manorastroman Send a message via Skype™ to manorastroman
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-04-2005 , 17:28  
Reply With Quote #13

@ DopeFish:
Thanks a LOT! Knew there had to be something like that,
couldn't find it though (Idiot me)

@Man or Astroman?:
Working on that right now, to be release along with my scriptpack.
Preview (needs some brushing up, technically ok...):
http://www.un4given.nl
Should display playing details, if not it's the same working steam gif
as in my signature...

The bug you mentioned is because there should be 20+ pictures interleaving
using CSS style sheets, which apperently Mozilla FireFox doesn't handle well...
Grey () for offline, Green () for online.


Best regards,
Tim

Last edited by Tim; 11-05-2008 at 09:22.
Tim is offline
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-04-2005 , 18:28  
Reply With Quote #14

Ok anyone got any pointers for me how I actually call my PHP script
that generates a picture from a .jpg / .gif / .png file??
Having quite the deadlock here...
Tim is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-04-2005 , 18:38  
Reply With Quote #15

u need to change MIME type on ur hosting server.
Freecode is offline
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-04-2005 , 19:18  
Reply With Quote #16

Edit: AGA Thanks a lot, Going to give that a try now...
Edit2: I came, I tried, I failed miserably...
Doesn't seem to be working for me or my webserver...
Cpoied the .htaccess from the PHP manual, but that gets
me an internal server error...
Code:
Action php-script /cgi-bin/php
AddHandler php-script .gif
Changed a simple PHP script into an gif, hoping it
would execute, but it just wouldn't work.

Is there any way I can have an empty .gif / .png / .jpg
link towards one of mij PHP scripts?
Or does anyone know what I'm doing wrong??
As a last resort, how have others managed to fix this?
Might be inspiring seeing a working version somewhere...


Tim
Tim is offline
AGA
Junior Member
Join Date: Dec 2004
Old 01-04-2005 , 20:16  
Reply With Quote #17

You define MIME-types in .htaccess. See this for reference.
AGA is offline
DopeFish
Senior Member
Join Date: Feb 2004
Old 01-05-2005 , 04:43  
Reply With Quote #18

there is a tutorial for creating .gif/.jpg/.png images with php (with apache .htaccess configuration)
http://www.phpmix.com/index.php?page=213&t=328
But remember your webhoster can also restrict which directives can be used in a .htaccess, so if everything fails, it might not be your fault.

For my sig images I went a different approach since I pass part of the filename requested as a variable to the script
Code:
   RewriteEngine on
   RewriteRule  ^/serverstats/server_([0-9]{1,5})_.jpg$ http://si-ka.net/serverstats/serversig.php?id=$1 [P]
the image requested is called server_xy_.jpg, where xy is the numerical id of the server you want stats of.


@Man... or Astroman?
You can either
- follow the tutorial above and make your own (after you have written one or two php image scripts you get the hang of it and it becomes really easy)
- or wait for Tim to finish his scriptpack (which will be more flexible for you since you can then adjust it to your needs without having to write it from scratch)
- or if you are lazy you can just add your server to my serverstats monitor and use the sig images it creates.
DopeFish is offline
Send a message via ICQ to DopeFish
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-05-2005 , 16:02  
Reply With Quote #19

Thanks a lot, tutorail really got me through it,
now just to adjust my script to work with it...
So far:
Tim is offline
manorastroman
Senior Member
Join Date: Oct 2004
Old 01-05-2005 , 16:39  
Reply With Quote #20

ill take the lazy option, thanks man, works excellent
__________________
manorastroman is offline
Send a message via AIM to manorastroman Send a message via MSN to manorastroman Send a message via Skype™ to manorastroman
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode