nickigraus: n00p sucht hilfe bei datei upload

Beitrag lesen

Hi,

das sind meine beiden scripts:

<html>
<head><title>Leladia Up Test</title></head>
<body>
<form enctype='multipart/form-data' action='scdo.php' method='post'>
<input type='hidden' name='MAX_FILE_SIZE' value='1000000'>
<input type='file' name='userfile' size='20' maxlength='60' accept='text/*'>
<input type='hidden' name='newname' value='testfile.scc'>
<input type='submit' value='Hau Wech'>
</form>
</body>
</html>

----

<html>
<head><title>Hochgeladen</title></head>
<body>
<?php
 echo "<b>$newname </b><br><br>";

if (file_exists($newname)==1)
 {
  chmod($newname, 777);
  if (unlink($newname)==1)
   {echo "Altes File gelöscht<br>";}
  else
   {echo "Dateifehler<br>";}
 }
 if (rename($userfile, $newname)==1)
  {echo "UpLoad<br>";}
 else
  {echo "Nix Upload<br>";}
?>
</body>
</html>

----

Und das ist die FehlerMldg:

testfile.scc

Warning: Rename failed (Invalid cross-device link) in /www/hosting/users/n/i/m/nimuee/sc/scdo.php on line 15
Nix Upload

Ich habe sowohl das dir 'sc' auf chmod 777 gesetzt als auch das File.
Kann mir da wer weiterhelfen?

Gruss

ThN