Page 1 of 1

file extensions

Posted: Fri Jan 07, 2005 10:15 pm
by shiznatix
im made a little upload script but i only want files with the extension of .mp3 to be allowed to upload. how do i do this with php 4?

Posted: Fri Jan 07, 2005 10:16 pm
by feyd
[php_man]substr()[/php_man]

note: the file extension does not guarantee that it is indeed that type of file.

Posted: Fri Jan 07, 2005 10:18 pm
by shiznatix
this i understand but im getting rid of "n00bs" this way. the rest are welcome to do what they can. to the ones who know what they are doing i say, lets dance :D