If you often find yourself in a situation where you need to look at your Apache server's error_log file regularly but you just don't feel like using SSH to simply look at a log? Read on, because this little script is for you.
For a “force download script” to which i send as variable a full URL, i needed to convert this url into the local path, so that the system can check whether the file exists or not, and then read it to output with the correct mimetype. Here is what i came up with. It seems... Read more »