While developing Battlefield 3 Web Commander, I wanted to keep it on my VPS where I was already running Apache. Of course I had the option of putting it in a non-standard port like 8080, but it wouldn’t be nice if the URL would be somedomain.com:8080. The second option was ordering an extra IP address from Linode. That would’ve cost …
Sending files better: Apache mod_xsendfile and PHP
I have previously written a quick post on making files downloadable through PHP scripts. The example in the post reads the file itself into a variable, and as pointed out in the comments, it’s not necessarily a very good idea especially if you deal with large files. Recently at work, we needed a reliable way to send files to users’ …