Images as static content on website are usually be cached by browser. Using PHP we can make the image can’t be cached and always loaded from server by putting random number behind the image file. The HTML output will be: The number 1331835943 is generated dynamically by PHP that forces the browser to always load […]
Read MoreWe can use iptables, service, and chkconfig commands to enable and disable firewall in Centos. iptables is an administration tool for IPv4 packet filtering and NAT. service is a command to run a System V init script. It is used to save, stop, and start services. chkconfig command is used to update and query runlevel […]
Read MoreThis guide will show you how to create transparent div element in HTML. What we need is 1 x 1 pixel transparent .png file which is created using Photoshop. 1. Create new image in Photoshop with dimension 1 x 1 pixel. 2. Press Ctrl-+ few times to magnify the image to 1600% 3. Click Paint […]
Read MoreBefore installing Ice Cream Sandwich (ICS) on Samsung Galaxy SII (SGS2), your handphone must be rooted. Read this article for rooting SGS2. Download ICS firmware from this website. You have to register first before able to download. Still on sammobile.com website, download Odin downloader. Extract both files and open Odin. Check Re-Partition option. Press PIT […]
Read MoreWhy do we need root? We need root if we want to have full control over our system / handphone. Why do we need full control over our handphone? We need full control over our handphone because we can do system and apps backup, install custom ROM, modify current ROM, etc. Below is how to […]
Read MoreSwap file is used by operating system to increase performance. Below are step by step guides how to create swap file in GNU Linux operating system: First of all, we determine the size of the new swap file and multiple it by 1024 to determine the block size. For example, the block size of a […]
Read MorePHP has a default memory limit of 8MB which is set in php.ini file. If your .php script exceeds more than the limit it will throw “PHP Fatal Error Allowed Memory Size Exhausted”. To settle this problem, you can add one line code in the beginning of your script: or, add in the following code […]
Read MoreThis maintenance message shows when WordPress updating its version, theme or plugin. Sometimes the updating process gets interrupted or fails for any reason. To fix this problem, delete .maintenance file in root directory of your WordPress folder. That’s all. Simple as it gets. In case the “. maintenance” file was not there at all. Started […]
Read More