0

I have a PHP page I built to help build eBay listing templates. I have a folder on my hosting account which stores 100's of logos of products I sell. I know the file names but not the file type (jpg, gif, png, etc). I just switched from hosting that did not care about extensions to hosting that does. Is there away for me to use javascript or PHP to automatically ascertain the file extension? I use a form to input the file name and want the output to include the file name with extension.

Thanks in advance,

Trevor

Trevor Lawson
  • 63
  • 1
  • 6
  • Did you have a look [**`here`**](http://stackoverflow.com/questions/173868/how-to-extract-a-file-extension-in-php)? – Fabio Aug 31 '14 at 06:44
  • Show us the code you use currently so we can help identify where the issue exists. – Ohgodwhy Aug 31 '14 at 07:12
  • This code is where I ask for the file name for the logo on an html page: `

    Logo 1: ` This is the code on the php page where the results are echoed: `if(!empty($e)) { echo '

    – Trevor Lawson Aug 31 '14 at 08:00

0 Answers0