Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 11-04-2004, 07:20 AM   #1 (permalink)
Addict
 
PHP3 legacy code replacement.

Hi there.

I'm looking to replace a php script with either newer php or a javascript.
# Name: ButtonServer
# Version: 1.0A
# Author : Robert Manuel
# Last Updated: 21 Oct 1999

It takes an exisitnig .gif and places some text defined in the url query on top of the image and creates it as a new gif, to be used as a button.

Problem is, the new server for the sites is now using php4.3x and the GD dll's in php no longer support creation of gifs, so the variables in the php3 script are returned as unknown.
Tried using the older dll's as extensions, but it just hangs.

Anyone know of a newer script that can do the same job?
WillyPete is offline  
Old 11-04-2004, 05:57 PM   #2 (permalink)
Crazy
 
Location: Salt Town, UT
The latest versions of GD-lib support creating gif's again. So you might want to try with those, otherwise, you're pretty well stuck with png's.
Rawb is offline  
Old 11-05-2004, 01:24 AM   #3 (permalink)
Addict
 
php_gd2.dll right?
WillyPete is offline  
Old 11-09-2004, 09:14 AM   #4 (permalink)
Addict
 
Bit of progress.
Thx aoeuhtns, I have discovered that gifs do indeed work as you've said.
I've been trying to teach myself to build dynamic images from the ground up. Have been able to get as far as basic images, but I'm having some trouble with the fonts loading. Using code I've found on the web and in the manuals, it seems I'm missing TTF support.

Anyone know where I can find a good reference on compiling latest php with TTF support for IIS6?

Thx.
WillyPete is offline  
Old 11-10-2004, 04:26 PM   #5 (permalink)
Addict
 
F#ckit! GRRRRRRRRRRR!

Note to people new to PHP and having to take care of older code:
You need to turn Register_globals in php.ini to 'on' for older coded variables to work.
Either that or the more secure way of rewriting the variable to meet secure standards of taking script variables in from the URL line. ( $_GET )
WillyPete is offline  
 

Tags
code, legacy, php3, replacement


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 01:00 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76