Skip to main content
gamedev.net
🔒 Locked

[web] Some PHP upload shtuff.

Started by SRHXODUS 5 replies 1.6k views
Original Post
SRHXODUS
SRHXODUS
Okay, so I was told to come post here by a man named Krisc, so first off, the site Softmod Files What's wrong is the upload won't work. <a href="http://img219.imageshack.us/img219/7899/fwbz9.gif>This, is my current file structure, with the uploads going into upload folder. This folder had a chmod 1777 put on it, so it should be good with read/write/edit. Now the error my error log spits out: [04-Sep-2006 18:16:20] PHP Warning: move_uploaded_file(/ss/uploads/X-Men_The_Official_Game_PAL_ITA.bin): failed to open stream: No such file or directory in /home/softmod/public_html/ss/uploader.php on line 75 [04-Sep-2006 18:16:20] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpWR1TXD' to '/ss/uploads/X-Men_The_Official_Game_PAL_ITA.bin' in /home/softmod/public_html/ss/uploader.php on line 75 So it's getting mad because it doesn't see it in the directory, but I have tried putting it their manually, and then trying to upload it, and tried without it there, both times have failed with this error. My code: http://pastebin.com/783881
Krisc
Krisc
Hey, may also want to include the code.

http://pastebin.sekati.com/?id=uploaderphp@32da7-1a4d9135-t

I will try and help some more, doubt I will be able to get it though.

And here is some error info he gave me...
[04-Sep-2006 17:40:47] PHP Warning:  move_uploaded_file(): Unable to move '/tmp/php04rvWu' to '/uploads/pal_game_fake_xodus_PAL_.bin' in /home/softmod/public_html/ss/uploader.php on line 75
SRHXODUS
SRHXODUS
For some reason the rest of my post wouldn't show up after I replied, so here it is:

http://img219.imageshack.us/img219/7899/fwbz9.gif is my current file structure, with the uploads going into upload folder. This folder had a chmod 1777 put on it, so it should be good with read/write/edit.

Now the error my error log spits out:
[04-Sep-2006 18:16:20] PHP Warning: move_uploaded_file(/ss/uploads/X-Men_The_Official_Game_PAL_ITA.bin): failed to open stream: No such file or directory in /home/softmod/public_html/ss/uploader.php on line 75
[04-Sep-2006 18:16:20] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpWR1TXD' to '/ss/uploads/X-Men_The_Official_Game_PAL_ITA.bin' in /home/softmod/public_html/ss/uploader.php on line 75

So it's getting mad because it doesn't see it in the directory, but I have tried putting it their manually, and then trying to upload it, and tried without it there, both times have failed with this error.

My code: http://pastebin.com/783881

Also, I put the 1777 chmod on the tmp folder that I just made, it has never been there before though :/
markr
markr
Looks like you're trying to move the uploaded file into the wrong directory. File paths are not automatically prefixed with the web root.

In any case, it's academic as your account (Both here and at your hosting company) is about to be banned for promoting warez.

Mark
markr
markr
My message to abuse@theplanet.com has been sent. I hope they ban your account.

Mark

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.