Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Posts posted by fugix

  1. if you want to check and see what file type is being downloaded...you can use this

    $ext = substr($fileName, strrpos($fileName, '.') + 1);

    what this will return is any text after the period...so if i had a file name "test.txt", the code will return "txt". You can then check to see if it returns xml...if it does, act accordingly, if not, set up code for that as well

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.