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. Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593845 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? Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593881 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? Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593886 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? Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593891 Share on other sites More sharing options...
ratcateme Posted July 18, 2008 Share Posted July 18, 2008 what is in $_FILES[$file]['error'] Scott. Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593916 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. Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-593937 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 :-\ Link to comment https://forums.phpfreaks.com/topic/115509-upload-file-problem/#findComment-594130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.