Associate
This tutorial will show you how to dynamically add some random text/quotes over an existing background so you can have a truly dynamic PHP generated image as your forum sig.
Output:
or:
To do this requires several things:
1. To check if you have GDLib support on your hosting, add the following code to a file called phptest.php:
Scroll down to the 'gd' section and look for this:
If GD Support is 'enabled' then you should have no problems generating images on the fly. If it is shows 'disabled' then it will not work.
** If any one wants hosting for their dynamic sig because their host doesn't provide it, ask in this thread, or email me [email protected]**
2. Photoshop a background image. Add hilarious images for added comedy value.
e.g
3. Save this image in a directory and call it bg.png
4. Next step is to add some quotes to a text file. This is the text that will be randomly selected and printed over our background image. Open Notepad, write some 'stuff' and save as quotes.txt
Output:
or:
To do this requires several things:
- Hosting with PHP enabled
- Hosting with GDLib installed.
- A basic text editor - Notepad will be sufficient
1. To check if you have GDLib support on your hosting, add the following code to a file called phptest.php:
Code:
<?php
phpinfo();
?>
Scroll down to the 'gd' section and look for this:
If GD Support is 'enabled' then you should have no problems generating images on the fly. If it is shows 'disabled' then it will not work.
** If any one wants hosting for their dynamic sig because their host doesn't provide it, ask in this thread, or email me [email protected]**
2. Photoshop a background image. Add hilarious images for added comedy value.
e.g
3. Save this image in a directory and call it bg.png
4. Next step is to add some quotes to a text file. This is the text that will be randomly selected and printed over our background image. Open Notepad, write some 'stuff' and save as quotes.txt
Last edited: