I have a number of buttons that I need to create. I can build up a library that will cover most uses, but not all. What I'd like is to have a web page where the user can:
* Enter the text forn the button
* The PHP can make a judgement about the size of the button reqd and then supply the appropriate button background image
* Place the text so that it is aligned center (horisontal and vertical)
* And it needs to do this in three iterations (one image each for normal, hover and click mode)
I've looked around and it appears that I can do this but ...
When I tried some of the scripts that already exist, I'm getting errors all over the place. I won't list them here yet because frankly I'm not even over the first hurdle. Apparantly the Mac default install of PHP does not include the required libraries/modules for PHP-based image manipulation. So, I'll take a few steps back to ask some beginner questions:
- Assuming I have nothing for image manipulation, what should I download (and where from)? Note - I am running PHP 4.3.11
- Is there anthing I should know that's Mac-specific? For example, I've noticed on this script (http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=223) that the font location does not match OS X location for fonts. I changed that, but the script still failed to find the fonts in that folder.
Anything that you think might help to get me up to speed would be good.
The best kick starter - a simple script that you know works on Mac with Apache/PHP that I can drop in to a file to test whether it works in a basic format, then at least I have a starting point and can verify that it will work with custom text/backgrounds thrown at it.
Many thanks