Like what I have to say? Subscribe to my blog via RSS or email, and you'll be notified whenever there's a new blog post!
 
Subscribe to Alvin Poh's Blog by RSS reader
Subscribe to Alvin Poh's Blog by Email

Gadgets, Technology, Public speaking and IT from an undergraduate's perspective.

Edit .htaccess to increase PHP’s max file upload

To increase the upload file size limit on your website, you need to edit PHP’s configuration settings. Unfortunately, not everyone has their own web server, so most of the time people are constrained by the limits of shared hosting. But you can still modify your base php.ini file by creating your own php.ini with the edits that you want.

Your php.ini file needs to be in every folder that’s going to be affected, or at least in the folder where the php script is being called from. Unfortunately if you have dozens of folders that need this edit, then you’ll need dozens of php.ini files.

An alternative is to then use .htaccess. By just placing a.htaccess file in your root folder, all folders beneath it will also have the change. The code to change your PHP max file upload size is:

RewriteEngine On
php_value post_max_size 1000M
php_value upload_max_filesize 1000M
php_value max_execution_time 6000000

You can edit it to suit your needs. 1000M = 1GB, so edit accordingly. Do note that your host will need to allow PHP edits though.

Subscribe to my blog: RSS reader    Email

Best Free Windows Calculator Replacement

Moffsoft FreeCalc is a freeware calculator application that is the best Windows calculator alternative. That’s right — you can completely replace the in-built calculator within Windows with this freeware tool because it provides so much more functionality.

Firstly, the calculator is resizable, so gone are the days that you had to carefully click on each number (yes, I know you can type it in on the keyboard as well). With Moffsoft FreeCalc, you can expand the calculator window so that it even fills up the entire screen if you wish! This makes pressing those buttons SO MUCH easier. Just check out a screenshot of it running on my laptop here:

Free Resizable Calculator alternative Better than Windows

Secondly, you get a useful tape (optional - can be turned off) that is displayed on the right of the main calculator window, and it’ll record down all the operations that you’ve performed.

Just these two additional features alone have made me switch from the calculator in Windows to this great little freeware application. Try it out! Moffsoft FreeCalc can be downloaded here. And if you want a premium version that comes with even more features (and I mean A LOT), then you’ll be pleased to know that Moffsoft offers a premium version of their calculator as well. Want even more calculator software? Then check out this site, because it offers a really wide range of freeware and software downloads.

Subscribe to my blog: RSS reader    Email