shogunJ Posted July 18, 2008 Share Posted July 18, 2008 Hey, I'm setting up a website for a friend but the host she is with (one.com) does not allow you to change the php.ini (to set the 'upload_tmp_dir')...I'm still quite new to php, so sorry if this is obvious, but is there a way around this? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
ratcateme Posted July 18, 2008 Share Posted July 18, 2008 why would you need to change it? can you give us a bit more info about what you want to achive. Scott. Quote Link to comment Share on other sites More sharing options...
shogunJ Posted July 18, 2008 Author Share Posted July 18, 2008 just to upload a file to the webspace. My understanding was when you upload a file it gets stored in the tmp folder, and then you move it to a perminant folder. Is this wrong? Quote Link to comment Share on other sites More sharing options...
Stephen Posted July 18, 2008 Share Posted July 18, 2008 Yes, it uploads to a temporary folder and moves it to one in your web directory that you specify. Why would you want to change the temporary directory? Quote Link to comment Share on other sites More sharing options...
shogunJ Posted July 18, 2008 Author Share Posted July 18, 2008 currently it has 'no value' .. i've tried uploading files already but it doesnt seem to work. I assumed this was the reason? Quote Link to comment Share on other sites More sharing options...
ratcateme Posted July 18, 2008 Share Posted July 18, 2008 what is in $_FILES[$file]['error'] Scott. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 19, 2008 Share Posted July 19, 2008 I assumed this was the reason? In programming don't assume, you must always check and find out exactly what something means. From the php manual - upload_tmp_dir string The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default. Quote Link to comment Share on other sites More sharing options...
shogunJ Posted July 19, 2008 Author Share Posted July 19, 2008 sorry, I started over and it now seems to work... very sorry people :-\ Quote Link to comment 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.