SubscribeSince this is a major point of confusion for people learning PHP - The default file upload location is writable by PHP, but PHP will automatically delete files uploaded here when the script terminates, so you must move the file if you want to keep it. Hence, you need to make a directory writable by hand so that you can move it to that directory.PHP only cleans up after itself for file uploads, not if you've written a file there yourself. And in this conversation we're using it for caching, so although the directory might be cleaned it's not like we can't recreate the files. But yeah, if you're looking for permanent storage it shouldn't be used.
You are not logged in, either login or create an account to post comments
posted by machaus at 1:39 PM on December 9, 2003