943,699 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 778
  • PHP RSS
Jul 15th, 2008
0

File upload problem

Expand Post »
Hi guys. I have this problem, i have a script which is handling file uploads. when running it on my local machine (WAMP--Apache 2.0; PHP 5.1.4) the script works well and all files are uploaded well. However on using the script on my server (LAMP -- Apache 2.0; PHP 5.1.4) it gives an error code 6 from $_FILES['files']['error']. Although it means that my temp dir is not set, it is set, and on doing a phpinfo(); it shows the uploaded_temp_dir path to be set.
Wat can be the problem????
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tver3305 is offline Offline
5 posts
since Apr 2008
Jul 15th, 2008
0

Re: File upload problem

Permissions maybe ?
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Jul 15th, 2008
0

Re: File upload problem

Click to Expand / Collapse  Quote originally posted by nav33n ...
Permissions maybe ?
The temp folder has 766 permissions.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tver3305 is offline Offline
5 posts
since Apr 2008
Jul 15th, 2008
0

Re: File upload problem

Are you sure the path for temp dir is correct in your php.ini file ?
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Jul 16th, 2008
0

Re: File upload problem

Click to Expand / Collapse  Quote originally posted by nav33n ...
Are you sure the path for temp dir is correct in your php.ini file ?
Yes the temp folder path is correct since i can navigate to it, and its the one with 766 permissions. This temp folder is not Linux temp folder but a folder i have set manually.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tver3305 is offline Offline
5 posts
since Apr 2008
Jul 16th, 2008
0

Re: File upload problem

Hi
This is probably just a stupid blip on my wampserver but i had the problem a while back and solved it via setting the permissions to 777. And when your seting them are you doing it through dreamweaver or on your remote mysql.

One other thing, make sure the permissions of the USER on your remote server has permission to write to your site.

Hope this helps but im sure most of its just nonsense.
Reputation Points: 12
Solved Threads: 16
Posting Whiz
Designer_101 is offline Offline
314 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: whois script not working in IE
Next Thread in PHP Forum Timeline: How can I declare an array as class variable?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC