Your file has gotten quite screwed, but that line should read
Code:
imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output[$i]); // LINE2
- you were also missing the parameter 0 between fontsize and left...
The last error is due to you having not yet CHMOD'ed your output directory to where you will save the image...