Raiden619 Posted January 4, 2008 Share Posted January 4, 2008 Hey i was wondering if you guys could help me as i would appreciate it i had gotten this upload script from a friend and said it worked but when i try it on my website and changed some of the settings i get problems Warning: move_uploaded_file(/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm): failed to open stream: No such file or directory in /home/www/stealth-force.freehostia.com/uploaderScripts.php on line 72 Warning: move_uploaded_file(): Unable to move '/tmp/phpVX73ne' to '/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm' in /home/www/stealth-force.freehostia.com/uploaderScripts.php on line 72 any help would be appreciated this is what is on LINE 72 before and after 70 $fileName = $directory.$target; 71 if(!file_exists($fileName) || $overrideFile == 1) { LINE 72 if(move_uploaded_file($_FILES['userfile']['tmp_name'][0], $directory.$target)) { 73 echo $fontString.'<font size="4"><b>Upload File - Successfully</b></font>'.$navigation.' 74 The file: <font color="#1C86EE">'.$target.'</font> was successfully uploaded.<br><br> 75 File URL: <a href="http://stealth-force.freehostia.com/clanfiles/uploads/'.$target.'"> 76 http://stealth-force.freehostia.com/clanfiles/uploads/'.$target.'</a>'.$Console; @mysql_query("INSERT INTO od_files SET uid = '".$rowlog['id']."', filename = '".$target."', size = '".$_FILES['userfile']['size'][0]."', Quote Link to comment https://forums.phpfreaks.com/topic/84433-upload-scripts/ Share on other sites More sharing options...
facets Posted January 4, 2008 Share Posted January 4, 2008 Check your $directory location. I think your path is wrong. Unable to move '/tmp/phpVX73ne' to --> '/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm' in --> /home/www/stealth-force.freehostia.com/uploaderScripts.php Will. Quote Link to comment https://forums.phpfreaks.com/topic/84433-upload-scripts/#findComment-430236 Share on other sites More sharing options...
rajivgonsalves Posted January 4, 2008 Share Posted January 4, 2008 Also check for directory permission mostly these errors are related to that... Quote Link to comment https://forums.phpfreaks.com/topic/84433-upload-scripts/#findComment-430249 Share on other sites More sharing options...
Raiden619 Posted January 4, 2008 Author Share Posted January 4, 2008 the highest directorys i have is logs 555 mail 555 www 755 i tried changing www to 777 and the subdirectories but no luck also on the file i had removed /home/ iono why it still shows up since i saw that the highest directory were those 3 Quote Link to comment https://forums.phpfreaks.com/topic/84433-upload-scripts/#findComment-430552 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.