carobee Posted February 13, 2008 Share Posted February 13, 2008 hi, i have written a php script for uploading files into linux server. but when i try to run that script i get "UPLOAD_ERR_NO_TMP_DIR ". i even tried to changing upload_tmp_dir directive in php.ini and giving it a path to one of my created folders but it seems nothing is working. can anyone help? Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/ Share on other sites More sharing options...
Sulman Posted February 13, 2008 Share Posted February 13, 2008 Make sure your tmp directory has read/write permissions Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-465747 Share on other sites More sharing options...
PFMaBiSmAd Posted February 13, 2008 Share Posted February 13, 2008 Make sure that the php.ini that you are changing is the one php is using. Also, did you stop and start your web server to get any change made to php.ini to take effect? Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-465865 Share on other sites More sharing options...
carobee Posted February 14, 2008 Author Share Posted February 14, 2008 my tmp dir has permissions also i hv restarted the apache server Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-466649 Share on other sites More sharing options...
Sulman Posted February 14, 2008 Share Posted February 14, 2008 Check your path to the tmp dir in the ini file. What is it set to? Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-466739 Share on other sites More sharing options...
carobee Posted February 15, 2008 Author Share Posted February 15, 2008 it is not set . it is using the system's default tmp directory. i have even tried by setting it but, nothing is working. Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-467356 Share on other sites More sharing options...
powerspike Posted February 15, 2008 Share Posted February 15, 2008 it is not set . it is using the system's default tmp directory. i have even tried by setting it but, nothing is working. try setting it to /tmp (if linux) or if windows try creating a folder in c:\ called tmp, and make sure that the "everyone" user has full read/write access to it. Also put a file in your document root which contains the contents of <?=phpinfo()?>, and load it in your browser, and make sure that your php.ini file is showing (it should be in the first panel), if it's not showing, it's not loading a php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-467371 Share on other sites More sharing options...
carobee Posted February 15, 2008 Author Share Posted February 15, 2008 i had changed php.ini for changing the tmp directory and loded php info page but in upload_tmp_dir column it shows no value, even with and without change in php.ini Quote Link to comment https://forums.phpfreaks.com/topic/90875-upload_err_no_tmp_dir/#findComment-467376 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.