Uploading file does not work for me!!!

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

dauzy
Forum Newbie
Posts: 11
Joined: Wed Jul 16, 2008 4:38 pm

Re: Uploading file does not work for me!!!

Post by dauzy »

so i made the directory but it still gives me error 6 wtf is that..also i checked if the /tmp folder was there by making it again and it says that /tmp is already there
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Uploading file does not work for me!!!

Post by andyhoneycutt »

I would say your next course of action would be to find out where PHP running on Mac OS X stores it's temp files.

-Andy
paperplate
Forum Newbie
Posts: 16
Joined: Thu Sep 04, 2008 12:15 pm

Re: Uploading file does not work for me!!!

Post by paperplate »

I had the exact same problem on a server that wasn't mine. Also got error 6.

First you wanna see what php thinks your temp upload directory is.
- Do a phpinfo(); function call and look for "upload_tmp_dir". Note this value.
- Make sure "file_uploads" is On.

Secondly you need to make sure the value specified for "upload_tmp_dir" physically exists.
- If it doesn't create it (mkdir [value])

Thirdly, make sure the permissions are set correctly. I think whatever user is running the web server needs write access. You can mess with the owner of the directory or just give it the end-all chmod code (777)
- chmod 777 [value]

After that, everything worked for me. Good luck.
Post Reply