Hi
i want to look into the directory files/folder1 and detect swf files. how can i do that?
i did some googling but it was showing me upload files tutorials
swf files in a directory
Moderator: General Moderators
thanks
i was reading: http://www.w3schools.com/php/func_files ... letype.asp
what to do about swf files?
i was reading: http://www.w3schools.com/php/func_files ... letype.asp
what to do about swf files?
-
thewebdrivers
- Forum Commoner
- Posts: 41
- Joined: Fri Aug 17, 2007 3:32 pm
- Location: india
- Contact:
yeah, use readdir() and then use the following to return extension
Code: Select all
$filename = \'filename.swf\';
$ext = strrchr($filename,\'.\');