Jim from Oakland Posted September 30, 2007 Share Posted September 30, 2007 Phreax I'm a lightweight PHPer so go easy on me. I am using basic, commonly available php code (e.g. at php manual website) to allow user to upload a file. I am using the same exact code on two different accounts from the same hosting service. Code works fine on one account and not the other. $_FILES array reports error # 6 which is something like "cannot find temporary directory" (where file is uploaded to). Host company tells me that they do not provide "support" for php so for the moment I am stuck. I hope to be able ask them about more specific things to check for me. OR, can I tell the web server (using code) where to store the uploaded file? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/ Share on other sites More sharing options...
teng84 Posted September 30, 2007 Share Posted September 30, 2007 show your code? Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358721 Share on other sites More sharing options...
Jim from Oakland Posted October 1, 2007 Author Share Posted October 1, 2007 http://jimeyer.net/upload/upload.txt Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358725 Share on other sites More sharing options...
teng84 Posted October 1, 2007 Share Posted October 1, 2007 TRY THIS LINK HERE http://www.w3schools.com/php/php_file_upload.asp Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358733 Share on other sites More sharing options...
Jim from Oakland Posted October 1, 2007 Author Share Posted October 1, 2007 Thanks for the suggestion If youlook closely at my codeyou'll see that I am doing exactly the same action as the suggested code. FWIW I did try it anyway and it ALSO gives error #6, temp directory not found. I presume that this error has to do with something my host service is doing; but I am at a dead end with them. Jim Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358738 Share on other sites More sharing options...
teng84 Posted October 1, 2007 Share Posted October 1, 2007 try to print first your file print_r($_FILES); and see whats the output Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358739 Share on other sites More sharing options...
Jim from Oakland Posted October 1, 2007 Author Share Posted October 1, 2007 Thanks teng84 I DID do the print_r($_FILE). That is how I know that the web server (Apache) cannot locate the temp directory where the uploaded file goes. I get error # 6. I can also see the file name. Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358759 Share on other sites More sharing options...
teng84 Posted October 1, 2007 Share Posted October 1, 2007 is this solved?? :-\ Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358760 Share on other sites More sharing options...
Jim from Oakland Posted October 1, 2007 Author Share Posted October 1, 2007 This is not solved. Perhaps I need to try another topial forum? Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-358766 Share on other sites More sharing options...
Jim from Oakland Posted October 1, 2007 Author Share Posted October 1, 2007 bump Quote Link to comment https://forums.phpfreaks.com/topic/71301-cannot-find-http-temp-dir-after-upload/#findComment-359190 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.