Archive for the Web Category

Local Domain Name in Windows

Posted in Apache, Web on June 20, 2011 by myleskadusale

This a simple tutorial on how to create a local domain name in windows using Apache.

First go to C:\Windows\System32\drivers\etc and edit the hosts file using notepad
Second add this inside the hosts file 127.0.0.1 http://www.yourdomain.com
Third go to your apache\conf\extra and edit httpd-vhosts.conf and add the text below

DocumentRoot “C:\xampp\htdocs\your_web_app_folder
ServerName http://www.yourdomain.com

Next go to apache\conf and open httpd.conf and uncomment Include conf/extra/httpd-vhosts.conf

Save everything and restart Apache

Then try to access http://www.yourdomain.com

How to fix IE PNG problems

Posted in CakePHP, HTML, Javascript, Web with tags , , , on May 27, 2009 by myleskadusale

Today I was having a problem displaying transparent PNG’s in IE and found this solution

It worked well.
Hope this helps 🙂

How to add a Website Icon in the Address Bar

Posted in HTML, Web with tags , , on May 26, 2009 by myleskadusale

Favorite Icons, or favicons for short, are 16px x 16px icons for your website. They are used by web browsers as your website’s icon when a visitor bookmarks your website or visits you website

Favicons are really simple to make, and because they add to your website’s image, there is really no reason not to have them. Look at the address bar now, you will see a blue W icon.

First you have to create a 16px x 16px icon.
Second rename your icon to the standard name which is favicon.ico
Third copy the icon file to your web root or any place you want
Fourth add this code inside the Head tag
<link rel=”shortcut icon” href=”/favicon.ico”>
The href path depends on where your icon is located.

That’s it!
By the way you can have different icons per page just put your favicons in different directory with the same standard name which is favicon.ico

Best tips and practices to speed up your website

Posted in CakePHP, CakePHP 1.2, Web with tags , , , , , , , on May 18, 2009 by myleskadusale


Best Practices for Speeding Up Your Web Site

10 Tips for Speeding Up Your Website