Posts

Showing posts from December, 2010

Creating Password Protected Webpage / Website

Some time if you want your website or webpage to be displayed to selected people or you do not want other people to see what is behind the Page. That time you need to create password protected Site. So today I decide to share basic steps for the same. 1. You need to create file named - .htaccess 2. Write below code in .htaccess AuthUserFile /yourserver/fullpath/where.htpasswdresides/.htpasswd AuthGroupFile /dev/null AuthName "Whatever Name you want to displayed with Prompt " AuthType Basic require user Usernameyouwant  3.  create .htpasswd file on your linux system by typing command.  htpasswd -c .htpasswd  Usernameyouwant   4. Upload both file to server. There is also online utility available here:  http://www.tools.dynamicdrive.com/password/

Ant Philosophy by Jim Rohn

I was surfing the web and I came across to very good resource of Jim Rohn 's Ant Philosophy. I have decide to share with you all. Ant Philosophy divided into 4 parts, mentioned below : 1. Never Give Up 2. Look Ahead 3. Stay Positive 4. Do All You Can Courtesy: The Ant Philosophy   Read full story here.

True ;)

Programming teaches us to be good managers. !!!

YSlow - Plugin for Firefox & Website Optimization

There are tools to check the website performance. I mostly use Firebug to get overall time taken to load resource. However one another good plugin is YSlow . Take a look and try it out. Courtesy:  Firefox addon

Extract compress files on Server using PHP

Hey All, Sometimes we need to upload large files and folders to server and it takes long time to complete. To make this process faster and simpler you can uncompress the files using one line of code using PHP. <? exec("gunzip -x filename.zip"); ?> You first need to upload the zip on server, make sure to give proper path in PHP code.  You can also compress Server files using below command. <? exec("zip -x filename.zip  Foldername"); ?> Please note, execution of above code tested on PHP running on Linux / Unix Server.

Removing Address Bubble from Google Map

We often use Google Map Embed Code to display Location. Using embed will display default Bubble with map address filled. Sometimes we want map without bubble, so here is the solution which I found and implement. 1. Open you Embedded Google Map Code. 2. Search for parameter as " iwloc=A " OR " iwloc=addr ". 3. Replace " A " OR " addr " with " nea r ". So the parameter will be " iwolc=near ". Pop up will be disappear and Bubble will displayed by clicking on location mark.