This is my ImageMagick code which works fine on my webserver by creating new image with the file name \'coloured_font.png\' in a default directory ...
Just replace coloured_font.png with coloured_font.php in you html file and create
coloured_font.png
coloured_font.php
coloured_font.php with this contents:
and thats it! Try to open coloured_font.php in your browser!