moola Posted November 23, 2006 Share Posted November 23, 2006 I'm using a simple form to allow users to upload videos with certain extensions (as shown in code) onto the website. My upload directory is chmoded to 777 as well as the upload.php itself. This is integrated with phpbb forum so the user has to sign in to be able to view the form itself(this explains the weird code) in the script. OK Here is the problem:Some users can upload a video and some users are always complaining that they get the following error message"change permission to 777 failed." They have tried with all supported formats. Some have been successfull some have not. I took a survey and both ie and firefox have succesfully uploaded. I have it myself with ie and firefox and I have been successfull uploading. Why the heck are some people getting the error message and some are not?!?! ???Here is the codehttp://www.ftvteen.com/CODE.TXT Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/ Share on other sites More sharing options...
moola Posted November 23, 2006 Author Share Posted November 23, 2006 OK WHY ON EARTH CAN'T I ATTACH THE PHP CODE I'M GOIN NUTS? Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/#findComment-129269 Share on other sites More sharing options...
Philip Posted November 23, 2006 Share Posted November 23, 2006 use [ code] CODE HERE (use <?php ?> tags) [ /code ] without the spaces in the [ ] tags Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/#findComment-129270 Share on other sites More sharing options...
trq Posted November 23, 2006 Share Posted November 23, 2006 Read [url=http://www.phpfreaks.com/forums/index.php/topic,96050.0.html]this[/url], and stop YELLING!.PS; Ive edited your title to be more descriptive. Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/#findComment-129272 Share on other sites More sharing options...
moola Posted November 23, 2006 Author Share Posted November 23, 2006 This is going to take forever I just decided to upload it to the site there's the codehttp://www.ftvteen.com/CODE.TXT Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/#findComment-129276 Share on other sites More sharing options...
trq Posted November 23, 2006 Share Posted November 23, 2006 Im not sure, your going to need to try some debugging. Tak ea look at the filepath when there is a problem.[code=php:0]if (!chmod($file_path,0777)) echo $file_path; $message = "change permission to 777 failed.";[/code]You might want to email this to yourself, maybe the path is getting messed up? Quote Link to comment https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/#findComment-129279 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.