Is there any way to write on an image, exept table background?
Generate an image or something?
Write on image
Yes, there is a way in PHP to generate an image programmatically like in CAPTCHA files. You use the GD library or any library available with same functions.
http://hotwired.lycos.com/webmonkey/01/21/index4a.html?tw=programming
Check out this link. It teaches you how to generate images on the fly.
You can use this skill to generate graphs, captcha images, etc...
Just to clarify, the GD package allows the PHP file to display as an image. If you wanted to somehow write to an image that was already loaded on the page you would need javascript.
I just need to generate buttons with text from a db..
Any quick way around this?
Yes, you do want to use the GD package. Check out these functions on php.net
imagecreatetruecolor
imagefttext
If you explore around this should get you started. Hope this helps.
10x.. exactly what i needed.. I kind of lost all hope when i saw all image related comands in the manual.. ;P
Awesome! Good luck with your site