File upload problem

Reply

Join Date: Apr 2008
Posts: 5
Reputation: tver3305 is an unknown quantity at this point 
Solved Threads: 0
tver3305 tver3305 is offline Offline
Newbie Poster

File upload problem

 
0
  #1
Jul 15th, 2008
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????
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,680
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 319
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: File upload problem

 
0
  #2
Jul 15th, 2008
Permissions maybe ?
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: tver3305 is an unknown quantity at this point 
Solved Threads: 0
tver3305 tver3305 is offline Offline
Newbie Poster

Re: File upload problem

 
0
  #3
Jul 15th, 2008
Originally Posted by nav33n View Post
Permissions maybe ?
The temp folder has 766 permissions.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,680
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 319
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: File upload problem

 
0
  #4
Jul 15th, 2008
Are you sure the path for temp dir is correct in your php.ini file ?
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: tver3305 is an unknown quantity at this point 
Solved Threads: 0
tver3305 tver3305 is offline Offline
Newbie Poster

Re: File upload problem

 
0
  #5
Jul 16th, 2008
Originally Posted by nav33n View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 257
Reputation: Designer_101 is an unknown quantity at this point 
Solved Threads: 12
Designer_101's Avatar
Designer_101 Designer_101 is offline Offline
Posting Whiz in Training

Re: File upload problem

 
0
  #6
Jul 16th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC