Forum Moderators: coopster
$font_face= "texb.ttf"; $font_path = PATH.'fonts/'.$font_face; For an easy hack to implement, the fonts should be sorted from their directory before $font_face is set.
Note : there is an index.html to ignore in that directory.
And $font_face should be the random font.
How do I do this in PHP4?
Once you have an array of file names, looping through and testing for a particular extension should be pretty straightforward.