Thread: $_files
View Single Post
10-12-2005, 10:20 PM
#7
Cborrow is offline Cborrow
Status: I'm new around here
Join date: Aug 2005
Location: Flint, MI
Expertise:
Software:
 
Posts: 7
iTrader: 0 / 0%
 

Cborrow is on a distinguished road

Send a message via AIM to Cborrow

  Old

You could try this

PHP Code:
$file substr($_FILES['userfile']['name'], -3);

if(
$file != "txt") {
echo 
"Invaild file type"; exit;
}
else {
//Do whatever is needed to be done