Jump to content

File Extensions


atholon

Recommended Posts

Hi, once more.

 

I am trying to make a script that compares file extensions with current allowed ones that are pre-defined in an array. Like $allowedEx = array (".jpg",".gif", ".png") but I am not sure how to match it.

 

The upload script is going to be for many different pages so they will refer to a specific functions...for this reason the allowed extensions will change.

 

How could I loop through the array to check them against the extension of the file?

Link to comment
https://forums.phpfreaks.com/topic/84340-file-extensions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.