DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   File upload problem (http://www.daniweb.com/forums/thread134594.html)

tver3305 Jul 15th, 2008 12:09 pm
File upload problem
 
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????

nav33n Jul 15th, 2008 1:16 pm
Re: File upload problem
 
Permissions maybe ?

tver3305 Jul 15th, 2008 1:26 pm
Re: File upload problem
 
Quote:

Originally Posted by nav33n (Post 648212)
Permissions maybe ?

The temp folder has 766 permissions.

nav33n Jul 15th, 2008 1:34 pm
Re: File upload problem
 
Are you sure the path for temp dir is correct in your php.ini file ?

tver3305 Jul 16th, 2008 9:55 am
Re: File upload problem
 
Quote:

Originally Posted by nav33n (Post 648231)
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.

Designer_101 Jul 16th, 2008 7:23 pm
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.


All times are GMT -4. The time now is 3:56 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC