[eluser]aquary[/eluser]
Mostly I use './folder/' for the upload folder... never found a problem with that one. I guess the "./" is relative to the index.php which on the root ?
But your error... seems to be more about you forgot to remove something along with $_SERVER['SCRIPT_FILENAME'].