File Upload Problem (Perhaps CHMOD)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

File Upload Problem (Perhaps CHMOD)

Post by Joe »

I have recently made a new upload script for my site but when I test it all I get is a message saying Forbidden, permission denied. I think it has something to do with the CHMOD but im not sure. Any help appreciated!


Joe 8)
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

yea, chmod it

Post by monkeyj »

You have to have the folder your storing all the files in CHMOD'd to like.. 777... that should do it...
Anything your writing to from the script.. to place the file has to be CHMOD'd.. if your clicking it on your page...
Cause it has to be publicly writable
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Ah ok. I got it now. thanks a lot bud!
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: yea, chmod it

Post by Weirdan »

monkeyj wrote:You have to have the folder your storing all the files in CHMOD'd to like.. 777... that should do it...
Anything your writing to from the script.. to place the file has to be CHMOD'd.. if your clicking it on your page...
Cause it has to be publicly writable
It would grant everybody all permissions on that folder
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: File Upload Problem (Perhaps CHMOD)

Post by pickle »

Joe wrote:I think it has something to do with the CHMOD ...
FYI: CHMOD is the Linux command to CHange the MODe of a file, the issue is with the MODE, not the CHMOD :wink:
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply