Check if its a font file

Discussion in 'PHP' started by Python, Apr 12, 2008.

  1. #1
    Im in the process of developing a web app and I need to include some functionality... I need to be able to perform a test on a file to see if it is a valid font file and if yes, what type.

    I know that I could do a check on the file extension but that's not really sufficient.

    Is there a way of doing this?

    Thanks
     
    Python, Apr 12, 2008 IP
  2. kmofo

    kmofo Active Member

    Messages:
    442
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    85
    #2
    kmofo, Apr 13, 2008 IP
    hogan_h likes this.
  3. Python

    Python Well-Known Member

    Messages:
    680
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Ok thanks,
    I suppose checking the extension will have to do - Ill just throw in a user/visual validation stage.

    Thanks
     
    Python, Apr 13, 2008 IP