<?php //Set the Content Type // Create Image From Existing File // Allocate A Color For The Text // Set Path to Font File $font_path = 'font.TTF'; // Set Text to Be Printed On Image $text = "This is a sunset!"; // Print Text On Image // Send Image to Browser // Clear Memory ?>