renoboi
02-10-2003, 08:42 PM
ok, i've been up all night and i think i'm having a brain meltdown. but i cant figure out what is wrong with this stupid script. i've narrowed it down to this line:
$fileName = $user.jpg;
it's part of a file upload script. what's supposed to happen is whatever file they upload gets renamed to whatever.jpg the script is removing all the funny characters, and verifying that it's the proper format and all that good stuff before it gets to this line. it's workin just fine except the '.' between $user and jpg disappears, so i end up with a file called whateverjpg.
i thought maybe escaping the . would work, but then i just get a server error.
can someone please tell me the stupidly obvious error that i've made?
$fileName = $user.jpg;
it's part of a file upload script. what's supposed to happen is whatever file they upload gets renamed to whatever.jpg the script is removing all the funny characters, and verifying that it's the proper format and all that good stuff before it gets to this line. it's workin just fine except the '.' between $user and jpg disappears, so i end up with a file called whateverjpg.
i thought maybe escaping the . would work, but then i just get a server error.
can someone please tell me the stupidly obvious error that i've made?