Miscellaneous

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.

​Read More
Miscellaneous

How To Connect SpeedTouch ST536 with Wireless Router

So I switched from cable to ADSL, but didn’t check if my wireless router could work out of the box. Well, it turned out that it could because I could surf the Internet just fine, or so I thought.

By not changing the settings to accomodate the ADSL modem, there was a weird phenomenon happening that caused frequent time-outs, FTP uploads failing, MSN messages not being sent or received properly, message loss, and the dreaded Page “Unable To Display” message in your browser until you refresh.

With such a host of problems, I did more research on my network configuration and tried to get my SpeedTouch ST536 ADSL modem to work with my Belkin wireless router properly. In fact, I was about to flash the SpeedTouch and get everything working in a bridge-mode setup until I discovered that there was an easier way!

If you think about it — the SpeedTouch can actually function as a router, and you can just use your wireless router as an access point. It means you don’t really fully maximise your router’s capabilities, but by using this setup, you ensure the fastest and most optimal way to configure your network.

How To Configure Your Wireless Router

In order for this configuration to work, you’ll need to do just a few things, in this order:

1.) Change your wireless router’s IP to 192.168.1.2 (it most probably was 192.168.2.1 or 192.168.0.1 etc.)
2.) Disable DHCP (dynamic IP assignment) in your wireless router’s configuration panel
3.) Plug the ST536 modem’s cable into your wireless router’s LAN port (not WAN port or MODEM port). This is the same type of port that your computer is connected to your router by.
4.) Disconnect and connect any computers that are currently connected to your network.

Done! đŸ™‚ This method worked for me, and I’m darn happy with my network now!

​Read More