Hey
I'm on windows machine. I'm trying to upload a file to server...done successfully except when I try to check whether its writing over an old file. I've tried:
if(file_exists("$path\\$_FILES['script']['name']"))
{
send
}
else
{
die
}
--
if(file_exists("$path/$_FILES['script']['name']"))
{
send
}
else
{
die
}
--
if(file_exists("$_FILES['script']['name']"))
{
send
}
else
{
die
}
--
if(file_exists(getcwd()."$_FILES['script']['name']"))
{
send
}
else
{
die
}
But all evaulate to false...why?
oh and the webpage is in the local directory but uploads are in "localdir/uploads"
Thanks for reading...