This may end up being a Linux problem, but I'm not entirely sure. I know this script works, but whenever I use fopen, it gives me a permission denied error. I did chmod 777 to the localhost directory, and openbase_dir isn't set, nor is safemode. This web server is on my laptop, as it takes too long uploading and such, so could this be a Linux problem? I don't know where else to look.