I've nevere scripted in php, but I always wanted to learn, now I decided to start doing something serious: the problem is that I think it's TOO serious for me

However, here's what I would like to do:
I would like a php dynamic signature and I searched for some tutorial with google, but I didn't find anything.
I would like to know how to get a text from a file (reading for example line 1 and write it at x,y; then read line 3 and write it at x2,y2) and drawing it over the image, possibly using a specific ttf font (uploaded on the web space, of course).
Thanks in advantege
Edit: got imagettftext, this is the command for writing thext, I think

(Genius Inside

)