Jump to content

Pulling my hair out...


lordphate

Recommended Posts

Warning: move_uploaded_file(/user/public_html/uploads//5.torrent): failed to open stream: No such file or directory in /home/phatconc/public_html/torrents-upload.php on line 205

Warning: move_uploaded_file(): Unable to move '/tmp/phpnOkSsE' to '/user/public_html/uploads//5.torrent' in /home/phatconc/public_html/torrents-upload.php on line 205



[code]if(!$message) {
    $torrent = str_replace("_", " ", $torrent);

    $nfo = sqlesc(str_replace("\x0d\x0d\x0a", "\x0d\x0a", @file_get_contents($nfofilename)));
    $ret = mysql_query("INSERT INTO torrents (search_text, filename, owner, visible, info_hash, name, size, numfiles, type, descr, ori_descr, category, save_as, added, last_action, nfo) VALUES (" .
implode(",", array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname, $CURUSER["id"], "no", $hexhash, $torrent, $totallen, count($filelist), $type, $descr, $descr, 0 + $_POST["type"], $dname))) .
", '" . get_date_time() . "', '" . get_date_time() . "', $nfo)");
    if (!$ret) {
      $message = "Mysql Error: ".mysql_error();
  if (mysql_errno() == 1062)  <----205
$message = "Torrent already uploaded!";
    }
    $id = mysql_insert_id();

    @mysql_query("DELETE FROM files WHERE torrent = $id");
    foreach ($filelist as $file) {
  @mysql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");
    }

    move_uploaded_file($tmpname, "$torrent_dir/$id.torrent");
if (isset($_FILES['nfo'])) {
move_uploaded_file($nfofilename, "$nfo_dir/$id.nfo");
}[/code]
Link to comment
Share on other sites

read the error carefully, there are two slashes after "uploads":

Warning: move_uploaded_file(/user/public_html/uploads[color=red][b]//[/b][/color]5.torrent): failed to open stream: No such file or directory in /home/phatconc/public_html/torrents-upload.php on line 205
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.