Posts

Showing posts with the label programming language

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/

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.

PHP : Get Current Page URL

Below is the PHP code snippest to get Current page URL.need to use $_SERVER array to get the server information. $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":". $_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } echo $pageURL;

Most Popular Programming Languages

Most Popular Programming Languages Posted using ShareThis

Go - New Programming Language by Google

Google has announced the release of a new, open sourced programming language called Go. The company says that Go is experimental, and that it combines the performance and security benefits associated with using a compiled language like C++ with the speed of a dynamic language like Python. Google says, Go is .... … simple … fast … safe … concurrent … fun … open source Visit Go's official site for more info.