Jump to content

Archived

This topic is now archived and is closed to further replies.

lordphate

Pulling my hair out...

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]

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
[code]move_uploaded_file($tmpname, "$torrent_dir/$id.torrent");[/code]

you probably have an extra slash in $torrent_dir

Share this post


Link to post
Share on other sites
found it now with my NEW problem ...

Tracker sending invalid data: <br />
<b>Warning</b>:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/phatconc/public_html/announce.php</b> .


any ideas?

Share this post


Link to post
Share on other sites

×

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.