lordphate Posted July 25, 2006 Share Posted July 25, 2006 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 205Warning: 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] Quote Link to comment Share on other sites More sharing options...
Azkoyen Posted July 25, 2006 Share Posted July 25, 2006 '$torrent_dir' isn't set. Quote Link to comment Share on other sites More sharing options...
lordphate Posted July 25, 2006 Author Share Posted July 25, 2006 $torrent_dir = "/user/public_html/uploads";That is in my config file Quote Link to comment Share on other sites More sharing options...
ryanlwh Posted July 25, 2006 Share Posted July 25, 2006 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 Quote Link to comment Share on other sites More sharing options...
lordphate Posted July 25, 2006 Author Share Posted July 25, 2006 I seen that but i can't figure out why its doing // Quote Link to comment Share on other sites More sharing options...
ryanlwh Posted July 25, 2006 Share Posted July 25, 2006 [code]move_uploaded_file($tmpname, "$torrent_dir/$id.torrent");[/code]you probably have an extra slash in $torrent_dir Quote Link to comment Share on other sites More sharing options...
lordphate Posted July 25, 2006 Author Share Posted July 25, 2006 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? Quote Link to comment Share on other sites More sharing options...
ryanlwh Posted July 25, 2006 Share Posted July 25, 2006 post your query that led to this error. Quote Link to comment Share on other sites More sharing options...
lordphate Posted July 26, 2006 Author Share Posted July 26, 2006 I'm running a torrent tracker, that is what came when i tried to seed the file Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.