1) You need a basic button image in PNG format which we use a base. In my case it is called button_on.png
2) Set the color of the text to whatever you want. In my case, I set it to black (notice color code 0,0,0)
3) To test, call your PHP like this: http://www.domain.com/button_on.php?text=SomeText or for multiple word buttons: http://www.domain.com/button_on.php?text=Some%20Text
4) You can include this in your web pages for dynamic images like this: <img src="button_on.php?text=Specification">