Monday, 13 April 2015

Restrict Filesystem Access to a Specific Directory

If your application must operate on the filesystem, you can set the open_basedir
option to further secure the application by restricting access to a specific directory.If
open_basedir is set in php.ini, PHP limits filesystem and I/O functions so that they
can operate only within that directory or any of its subdirectories. For example:

open_basedir = /some/path

With this configuration in effect, the following function calls succeed:


But these generate runtime errors:

$fp = fopen ("/some/other/file.exe", "r");
$dp = opendir("/some/path/../other/file.exe");

Of course, one web server can run many applications, and each application typically
stores files in its own directory.You can configure open_basedir on a per-virtual host
basis in your httpd.conf file like this:

DocumentRoot /web/sites/domainA
php_admin_value open_basedir /web/sites/domainA

Similarly, you can configure it per directory or per URL in httpd.conf:

# by directory
<Directory /home/httpd/html/app1>
php_admin_value open_basedir /home/httpd/html/app1
# by URL
<Location /app2>
php_admin_value open_basedir /home/httpd/html/app2

The open_basedir directory can be set only in the httpd.conf file, not in .htaccess files, and you must use php_admin_value to set it.

Saturday, 11 April 2015

Image Slide Show in HTML

In HTML image addition we discussed already. Now we will make a image slideshow in HTML page. This is really very important article for those who wanna make a dynamic web page.
Let's start making a slideshow. 

1) First we will write our HTML page as usual.

2) For image slideshow first we introduce our images. This will do by introducing script inside head tag.

<script type="text/javascript">
var a1 = new Image()
a1.src ="a.jpg"
var a2 = new Image()
a2.src = "b.jpg"
var a3 = new Image()
a3.src = "c.jpg"
var a4 = new Image()
a4.src = "d.jpg"

3) Now images are added. Let's start implements them into body of web page. For this we will add a first display image on web page using HTML image addition tag.

<img src = "a.jpg" name ="slide" height="400" width ="400">

4) Now we again introduce a script inside body of web page. This script will make slideshow operations.

<script type="text/javascript">
var number = 1
function slideit() {

document.images.slide.src = eval("a"+number+".src")

In above script we make a variable "number" (you can make any word you wants). This variable initialize as 1. After that we made a function "slideit", In this function we used a javascript command which evaluate images one by one. A loop introduced after that with will run till last image. The variable number will change in every count of the loop as 1,2,3,4. This will change image source as a1,a2,a3,a4. After that a timeout command introduced for slideit function with time difference 1500 ms.

Now run the program, I am sure it will work fine.

Thursday, 9 April 2015

How to use PHP to access a Database

Databases are backbone of today's websites. PHP has support for over 20 databases. MySQL, PostgreSQL and Oracle are widely used databases. Databases are used for storing users registration data, credit card numbers, purchase history, product reviews and many other things.
PHP and phpmyadmin both are used to access databases. Relational database management system is a server which is used to manage data. Data is structured into tables where each table have some no. of columns, each of which has a name and a type. PHP communicates with relational databases such as MySQL and Oracle using structured query language (SQL). The syntax for SQL is divided into two parts. The first, Data Manipulation Language, or DML, is used to retrieve and modify data in an existing database. DML is remarkably compact, consisting of only four verbs: select, insert, update, and delete. The set of SQL commands, used to create and modify the database structures that hold the data, is known as Data Definition Language, or DDL. The syntax for DDL is not as standardized as that for DML, but as PHP just sends any SQL commands you give it to the database, you can use any SQL commands your database supports.

Assuming you have a table called movies, this SQL statement would insert a new row:
INSERT INTO movies VALUES(0, 'fast and furious 7', 2015, 2)
This SQL statement inserts a new row but lists the columns for which there are values:
INSERT INTO movies (title, year, actor) VALUES ('hercules', 2015, 2)
To delete all movies from 2015, we could use this SQL statement:
DELETE FROM movies WHERE year=2015
To change the year for hercules to 2014, use this SQL statement:
UPDATE movies SET year=2014 WHERE title='hercules'
To fetch only the movies made in the 2010s, use:
SELECT * FROM movies WHERE year >= 2010 AND year < 2015 .

 Example :  

This example will show you how to insert form data into database using PHP.

1) First create a html form.

2) Now create a connect.php file.

Top ten fastest cars in the world 2014-15

Best cars having two catageories, oe is most expensive and another catageory is most expensive cars. First we will take fastest cars i the world till 2015 march.

1) Hennessey Venom GT : Speed up-to 270.49 mph

Hennessey came in 2012 with Recardo 6-speed manual transmission. It gains 100 km/h speed in 2.4 sec. The cost of this car is $6-10 million.

2) Bugatti Veyron Super Sport : Speed up-to 269.86 mph


Veyron Super sport came in 2010 with 7-speed DSG sequential transmission. It gains 100 km/h speed in 2.4 sec. The cost of this car is $3.4 million.
3) Bugatti Veyron EB 16.4 : Speed up-to 254.04 mph

Veyron EB 16.4 came in 2011 with 7-speed DSG sequential transmission. It gains 100 km/h speed in 2.8 sec. The cost of this car is $2.7 million.

4) Saleen S7 TT : Speed up-to 248 mph

Saleen S7 came in 2005-2009 with 6-speed manual transmission. It gains 100 km/h speed in 2.8 sec. The cost of this car is $580000.

5) Koenigsegg CCX : Speed up-to 245 mph

Koenigsegg CCX came in 2006-10 with 6-speed manual and automated maual transmission. It gains 100 km/h speed in 3.2 sec. The cost of this car is $5.5 million.

McLaren F1: Speed up-to 243 mph

McLaren came in 1992-98 with 6-speed manual transmission. It gains 100 km/h speed in 3.2 sec. The cost of this car is $5.58 million.

7) Zenvo ST1 : Speed up-to 233 mph

Zenvo came in 2009 with 6-speed manual transmission. It gains 100 km/h speed in 3 sec. The cost of this car is $1.25 million.

8) Lamborghini Veneno : Speed up-to 221 mph

Veneno came in 2013 with 7-speed semi-automatic transmission. It gains 100 km/h speed in 2.8 sec. The cost of this car is $4 million.

9) Ferrari LaFerrari : Speed up-to 220 mph

LaFerrari came in 2013-14 with 7-speed dual clutch manual transmission. It gains 100 km/h speed in 2.9 sec. The cost of this car is $1.3 million.

McLaren P1 : Speed up-to 217 mph

P1 came in 2014 with 7-speed dual clutch transmission. It gain 62mph(100 km/h) speed in 2.8 sec. The cost of this car is $1.2 million.

Google Chromebit

Google chromebit is basically a dongle. It is a PC in face of usb. Google going to launch it soon. It is world's first usb pc. It will cost upto 100$ approx and in indian market will be 6000 approx. When we will join it to normal TV it will convert it in to a PC. A mouse and keyboard can also join it through bluetooth. It is very useful for businessman and students also.Chromebit works when it will connect to any display.

There are some other companies like intel and some other chinese companies have been selling Android HDMI dongle-computers since over a year based on the Rockchip RK3288 processor. Intel computer stick is also announced in 150$ but chromebit is not similar with these. Intel computer stick is a HDMI dongle having powerful features, it having 1.33 GHz quad core intel atom processor, 2 GB RAM and 32 GB solid state storage. It also have wifi, bluetooth, and maybe microSD slot.

Whereas chromebit is made up by google ans asus. It is similar to google chromecast. Google announced to release it in summer approximately. Chromecast is used for streaming videos over internet on TV whereas chromebit will also work for some other part of a new wave of machines that use Chrome OS, an operating system built for the internet age. Based on the Google Chrome web browser, the OS is designed for use with internet-based applications such as Google’s Gmail email service and its Google Docs word processor, reducing our dependence on the bulky local software that traditionally runs on PCs, moving tasks onto a cheaper breed of hardware as a result, and, ostensibly, improving security. With a Chromebit, you don’t even need a notebook or netbook—you just slip the stick into the HDMI port of a display at home, work, or an Internet cafe.The Chromebit doesn’t appear to be a truly novel idea, but rather a nice effort on the part of Google to market an existing concept.


How to reset root password of MYSQL on windows

Use the following procedure to reset the password for all MySQL root accounts:

1) Log on to your system as Administrator.

2) Stop the MySQL server if it is running. For a server that is running as a Windows service, go to the Services manager: From the Start menu, select Control Panel, then Administrative Tools, then Services. Find the MySQL service in the list and stop it.

3) Create a text file containing the following statements. Replace the password with the password that you want to use.
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';

The UPDATE statement resets the password for all root accounts, and the FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.

4) Save the file. For this example, the file will be named C:\mysql-init.txt.

5) Open a console window to get to the command prompt: From the Start menu, select Run, then enter cmd as the command to be run.

6) Start the MySQL server with the special --init-file option (notice that the backslash in the option value is doubled): 

C:\> C:\mysql\bin\mysqld --init-file=C:\\mysql-init.txt

NOTE : If you installed MySQL to a location other than C:\mysql, adjust the command accordingly.
  • If you installed MySQL using the MySQL Installation Wizard, you may need to specify a --defaults-file option:
  C:\> "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe"
       --defaults-file="C:\\Program Files\\MySQL\\MySQL Server 5.6\\my.ini"

  • The appropriate --defaults-file setting can be found using the Services Manager: From the Start menu, select Control Panel, then Administrative Tools, then Services. Find the MySQL service in the list, right-click it, and choose the Properties option. The Path to executable field contains the --defaults-file setting.
7) After the server has started successfully, delete C:\mysql-init.txt.

Congratulations, you should now be able to connect to the MySQL server as root using the new password. Stop the MySQL server, then restart it in normal mode again. If you run the server as a service, start it from the Windows Services window. If you start the server manually, use whatever command you normally use.

Submitting and Retrieving Forms data using PHP

Web forms are GUI element wherein the data to be processed is submitted to the web server. The whole process is called client/server data processing model. It is applicable in web sites and web applications. Web form contains text boxes, buttons, check boxes, which allows the user to enter the required information. Web form contains a submit button, when you clicked the submit button, the contents of the form is submitted to the server for processing.
Form is formed using <form> tag which having attributes like action, method, enctype and name. All attributes having their own functions, for example enctype is used for making encryption for form contents.

Submitting the form data

The data of the form cab be sent to the server using either the post() or get() method. The get() method having  attribute method equal to get() and post method having attribute method equal to post().
For example : <form name ="amar" method ="get" action="amar.php">.
Note : In post method information submitted by the user don't show whereas in get information entered by the user Shows in url.

Retrieving Form data

The form data retrieve using php file(amar.php. You must have a web server like apache or wampserver and the both HTML and PHP files should be in same directory(root directory) of the server. The server is used for transmitting data and retrieving data. Lei's see how we can do it.
First make a form in HTML file.
<title>Data transmission</title>
<form name="amar" method="get" action="amar.php">
First name:
<input type="text" name="first" />
Last name:
<input type="text" name="last" />
<input type="submit" value="submit" name="button">


Now retrieve data using these lines.

<title>retrieving data</title>
first name is :
echo $_GET["first"];
last name is :
echo $_GET["last"];

It's all about HTML and PHP form data transmission.In next article we will focus on Database connection using PHP.


Javascript with HTML

Script is a small program that can add interactivity to your website. A script could generate a pop-up alert message or drop down menu. These scripts can write in javascript or VBScript.
In javascript we can write small functions called event handlers, then we can trigger those functions using HTML attributes. Now days Javascript is widely used web scripting language.
We can add javascript using external .js file or internally in HTML document. Let's start both cases one by one.

Externally use of javascript : If we wanna add functionality in various HTML documents then we should add external javascript file. In HTML document we will make a syntax inside <head> tag as - 
<script type = "text/javascript" src = "amar.js"></script>
<input type="button" value="click me" onclick="amar();">

and "amar.js"  is :
function amar() {
alert("hello amar");

when we will click the button then output will be-

Similarly we can add javascript inside the HTML document without using external .js file. Let's see the syntax for making it.
<script type="text/javascript">
function amar(){
alert("hello amar");
<input type="button" onclick="amar();" name="ok" value="Click Me" />

Output will be the same as above. Now we should know about Event Handlers. Event handlers are small function which responds on mouse or keyboard actions. Let's see how.

<script type="text/javascript">
function amar(){
alert("hello amar");
<p onmouseover="amar();">Bring your mouse here to see an alert</p>

When we will bring our mouse over text the we will see the same alert as above. Now we will focus on <noscript> tag. This tag is used when browser of user doesn't supports javascript or they disabled javascript. At that time this tag shows them a alert.
<script type="text/javascript">
document.write("Hello Javascript!");
<noscript>Your browser does not support Javascript!</noscript>

NOTE : When we will use multiple script files or multiple <script> tags  then we should make default scripting language for all tags by following syntax.
<meta http-equiv="Content-Script-Type" content="text/JavaScript" /> 

Thanx everyone, we will continue HTML in next article.

Image addition in HTML

As we know that HTML is widely used web development language. Images are also most important part of Web pages. These are used for making attractive web pages and other graphic properties. Here we will discuss about addition and linking of images in web pages through HTML.
In HTML we uses <img> tag for inserting images. The attributes used for <img> tag are:
1) src : In this attribute we defines the path of image file.
2) height : defines height of the image in pixels.
3) width : defines width of the image.
4) border : defines image border.
5) style : this attribute defines style of the image. By introducing style attribute we don't need to insert external css.
6) alt : defines the image tag line.

Let's start how to add images in HTML.
NOTE : The thing we should remember is that both image file and HTML web page file must be in same folder.
<title>First image</title>
 <img src="d.jpg" height="500px" width="500px" boder="5px" alt=""My image></img>


How to make image as a redirect link in HTML:
 Let's see how we can make a image as a link. We know that a link is make my anchor tag in HTML, so we will use it in image link formation.
<a href=""><img src="d.jpg" height="500px" width="500px" boder="5px" alt=""My image></img></a>
Above syntax is a image redirect link. When we will click on image on web page then this will redirect us on "".
In next article we will discuss on HTML with javascript. 


PHP(Hypertext Preprocessor) is a server side scripting language that is used to develop dynamic web pages. PHP also have capability to communicate with dayabase. PHP free software released under PHP License, they don't contains GNU norms.
There are several versions of PHP released:

1)PHP version 2 : Released on june 8,1995.
2)PHP version 3: Released on 1997.
3)PHP version 4: Released on May 22, 2000.
4) PHP version 5: Released on July 13, 2004.
5)PHP version 6: this is under development.

Features of PHP :
1) Access control : Provides built in web based configuration screen to handle access control configuration.
2) File upload support : Allow users to upload files to a web server. PHP provides the multipurpose internet mail extension decoding process to upload the files onto the server.
3) HTTP based authentication control : Allows the user to create customized HTTP-based authentication mechanism for the web server.
4) Conditional statements and loops : Allow user to work with loops and conditional statements same as C language.
5) Extended regular expressions : Supports all regular expression operations. They are mainly used for pattern matching, pattern substitution and general string manipulation.
6) Access logging : Allow user to record the number of times website  or web page accessed.
7) Safe mode support : Allow multiple users to run php scripts on the same server simultaneously.
8) Open source : Allow user to work with multiple software development languages.
9) Third party application support : PHP also supports third party appliactions like MYSQL database etc.
10) Extensible architecture  : Allow the user to read and write in various formats, such as GIF, JPEG, PNG. Sends and receive emails using SMTP, IMAP, POP3.PHP also allow user to access C libraries, java classes.

PHP code can be embedded in HTML and XHTML in three ways :
1) XML style : <?php
                        //php code
2) Short style : <?
                         //php code
3) Script style : <script language ="php"> 
                           //php code

Creating PHP script : PHP scripts are plain text files containing PHP instructions. Let's see how to create PHP script with HTML:

<head><title>first php</title>
echo "this is my first PHP.";

output will be:

We should remember that for running PHP scripts we must have PHP installed on system.

Official link for PHP  download

Introduction to Forms and HTML Controls

HTML is also designed to introduce forms those are also primary part of web page and gather information from the user. The basic function of the form is to allow a user to enter data on one end and send the data on the other end through the server. Forms are used in purchasing goods,sign up for newsletters,mail accounts etc. Each form having a submit button which helps to send data through the server to the action url.

Creating HTML Form :

HTML forms are created by the <form> tag. The attributes use for form tag are action and method. These attributes are used for processing HTML form. Action is used to entering action url and method is used for entering methods which will be use to transferring data to the server. There are to methods which are used in HTML forms POST and GET.

Now i am going to give you an example regarding forms.Let's see :

<title>My First Form</title>
<form action="physical address of server" method="post">
First Name :
<input type="text" name="firstname">
Last Name:
<input type="text" name="lastname">
<input type="submit" value="Submit">

The following page will open on running this html page :


For using form action we should need the server address where we wanna send form data.
<input type="submit"  makes a button which is use for sending data to action url and <input type="text" are used to create text fields for entering data.
Name attribute is used to make both text fields different. These name attribute will use in PHP when we will try to connect database server. This will be the most important part pf the HTML forms.
In next article we will discuss about HTML with javascript.


As we know that view of HTML web page is the most important part.In my previous article we discussed about HTML layouts using tables, and now i will tell you about HTML layouts using CSS.
CSS is named as cascade style sheet. Style sheet means it makes styles like fonts style, page style, backgrounds,borders etc.So let's start.......
First we should know how to make css file?
CSS don't need any external IDE or anything else. We only needs a text editor as notepad++.
  • open editor and make a new file and saved as "myfile.css".
  • Now create a new File and make a HTML web page and add the following line inside the <head> tag :
   <link rel="stylesheet" type="text/css" href="myfile.css" media="screen" /> .

One thing should be remember that both your HTML web page and CSS file in same folder.
Now program CSS file as:

    font-family:comic sans ms;



Now put this HTML file :

<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<table width="100%" border="5px">
<td colspan="2" bgcolor="aqua">
<h1 class="h1">This is my first web page</h1>
<tr valign="top">
<td class="td1"  width="10%">
<b class="b1">Main Menu<br><br>
About us<br><br>
Contact us<br><br>
<td bgcolor="#eee" width="100" height="400">
<td colspan="2" bgcolor="#b5dcb3">
<font size = "5">
<b>Powered by : Amar Gangwar</b>

this result will shown.

HTML Layout using CSS

This all about introducing CSS to HTML.In next article we will discuss about PHP inside HTML.

HTML Layouts

Layout is a important part of web page. This is used for making web page attractive. Today css and javascript uses in making layouts but HTML is also fulfills same. Here i will teach you how to make HTML Layouts using tables.
Table is the part of HTML, it is denoted by <table /> tag.The full table tag is :


These tables are arranged in rows and columns, so you an use these rows and columns as you want. Here <tr> tag used to create table rows and <td> tag is used for creating data cells.
The following Layout we will get via html table.Let's see :

<!DOCTYPE html>
<table width="100%" border="5px">
<td colspan="2" bgcolor="aqua">
<h1>This is my first web page</h1>
<tr valign="top">
<td bgcolor="pink" width="10%">
<b>Main Menu</b><br><br>
About us<br><br>
Contact us<br><br>
<td bgcolor="#eee" width="100" height="400">
<td colspan="2" bgcolor="#b5dcb3">
<font size = "5">
<b>Powered by : Amar Gangwar</b>
</html> .

The output for above code will be :

HTML layout using tables

 We can say that HTML is also able to making attractive layouts for web pages.We just need complete knowledge about it. We can also make buttons,text area,images and many more things inside web page.
In my next article i will show you how to introduce CSS stylesheet in HTML.

HTML Meta Tags

HTML meta tags are really very important tags.Metadata usually define the additional important information about the documents in many ways. Meta elements used to include name/value pairs describing properties of the HTML document, such as author, keyword, expiry date, author etc.
<meta> : This tag is a empty element so it doesn't have closing tag. It carries information within the attributes.
You can add any no. of meta tags, this is based on your requirements. Meta tags doesn't affect the appearance of the HTML document. The data stored within the meta tag is called metadata.
Meta tag always used within the <head> tag of HTML document. The following attributes can placed in meta tag :

1) Name: Name for the property, can be anything. For example, keywords, description, author, revised, generator etc.

2) content : It specify the property's value.

3) scheme : It specify a scheme to interpret the property's value.

4) http-equiv : It can use to refresh the page or to set the cookie. Values include content-type, expires, refresh, set-cookie.

How to add keywords related to the document : you can use <meta> tag to specify important keywords related to document.Let's see how :

<!DOCTYPE html>
<title>Meta Tags Example</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<p>Hello HTML</p>

There are some important examples related to <meta> tags : 
  • If you want to refresh your page in every 10 min the use the following syntax :   <meta http-equiv="refresh" content="10" /> 
  • If you wanna show last date update of your web page then use following syntax  <meta name="revised" content="techtutorialszone, 3/18/2015" />
  • If you wanna add description about web page then use the following syntax :      <meta name="description" content="techtutorialszone is about technology" /> 
  • If you wanna redirect your web page after a certain time then use the following <meta http-equiv="refresh" content="5"  url="" />
  •  If you wanna add cookies storing process within your web page then use it :       <meta http-equiv="cookie" content="userid=xyz; expires=Wednesday, 08-Aug-15 23:59:59 GMT;" />    
NOTE :  If you will not use expires date the cookies will treated as the session cookies, means when you close the browser then cookies will automatically deleted.

THIS IS ALL ABOUT META TAGS, THANK YOU !                                                                                     

HTML Overview

HTML is basically hypertext markup language.It is use to develop web pages.It is the most widely used programming language in web developing areas.

1) Hypertext refers to the way in which web pages are linked together, that's why link available on web page are called Hypertext. 
2) HTML is a Markup Language which means you use HTML to simply "mark up" a text document with tags that tell a Web browser how to structure it to display.

Basically HTML was developed for defining structures of documents like headings,paragraphs,lists and so forth to facilitate the sharing of scientific information between researchers.
Basic Structure of HTML document is :

 <!DOCTYPE html>
<body>this is my first html page</body>

DOCTYPE defines the document type and html version also.
HEAD defines the document's header which can keep other html tag like title and link.
TITLE defines the documents title and it used between head tag always.
BODY defines the body of the document.It is the main tag of html because everything that define inside the body tag will be the main html document body.

resolution of above example
So this was the basic of HTML.We will continue in next post.

Google Public DNS

Google public DNS : It is Domain Name system service offered by google.It functions as a recursive name server providing domain name resolution to any host on the internet.This service was announced on 2009 and in 2014 it was the largest DNS service in the whole world.It makes web faster and more secure.
Google public DNS operates recursive name servers for public use on following IP addresses : and for IPv4 ,
                     2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6 as well.
 The addresses are mapped to the nearest operational server by anycast routing.

 Anycast : It is a network addressing and routing method in which datagrams from a single sender are routed to the nearest node in group of potential receivers, though it may be sent to several nodes, all identified by the same destination address.

Google public DNS

Google Public DNS's policy specifically states, "We don't correlate or combine information from our temporary or permanent logs with any personal information that you have provided Google for other services."


WINDWOS 7 Performance Boosting tips

Here i will explain how to boostup win7 performance without any just begin with my hands guys : 
  1. Firstly go to the system protection option, then create option and create restore point for your system.
  2. Now if you have any antivirus then replace it with more efficient antivirus as avast which uses least system memory.
  3. Install any anti-malware software as "malwarebytes" and perform a full scan.
  4. Install any utility software and scan the system.
  5. Now go to the start menu and type "services.msc" and stop the service "window search.Go to the properties of this service and change start up type to disable.
  6.  Now go to the system properties, then go to the performance settings and select adjust for best performance option.Now check these options : 
  7. Now go to the same window as above under performance option go to the advance tab and then go to the virtual memory section and click change.After it uncheck automatically  mange paging option then select custom size and type "11983" in both blank spaces then click set.
  8. Disable theme service from services.msc and also stop it.
  9. Check your RAM it is working fine if it not then purchase a new one with same configuration as your system wants.
  10. Go to the start menu then type "msconfig".Now under boot tab go to the advanced option and check the no. of processors and set it to the highest no. of processors.

Configuring MYSQL Server

Configuration of Mysql server begins with defining following types of networking options.

Mysql server configuration panel
Server Installer Overview
 Server configuration Types : it defines amount of system resources that will be assign to your Mysql server instance.
  • Developer : It is basically your personal workstation.It configure Mysql to use least amount of system memory.  
  • Server : It consumes medium amount of system memory.
  • Dedicated : It is a machine that is dedicated to running Mysql server because no other major application are running on this server such as web servers.This consumes most amount of system memory.
Connectivity : this option define how you will connect to Mysql.
  •  TCP/IP : This is the most eligible option for server because this will connect you with port otherwise only localhost connections will allowed.
  • Named pipe : Enable and define the pipe name, similar to using --enable named-pipe option.
  • Shared memory : enable and then define the memory name, similar to using --shared-memory option.
Advanced Configuration : This option provides additional logging option configuration.
Accounts and Roles : This is the next option under installation.In this option You must provide root password for your server logging.
if Mysql server is already installed then you should provide current root password 
Windows Service :
  • Now you configure the Windows Service details. This includes the service name, whether the MySQL Server should be loaded at startup, and how the Windows Service for MySQL Server is executed. 
Advanced Option :
The next configuration step is available if the Advanced Configuration option was checked. This section includes options that are related to the MySQL log files. Now click apply server configuration and then click execute.This is all about server configuration.
For starting server enter the following command on cmd :
C:\> "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld".

Standard Exception Handling for Streams

C++  provides standard exception handling for streams. You can use the exceptions()
method to specify the flags in the status-word of a stream that will cause
exceptions to be thrown.
The exceptions() method is defined in the ios stream base class. The method
expects one or multiple state flags separated by the | sign. An exception is then thrown for the flags specified.

Example:     ifstream ifstrm("account.fle");
                        fstrm.exceptions(ios::failbit | ios::badbit);

On accessing the fstrm stream an exception is thrown if either one of the flags
ios::failbit or ios::badbit is raised. The operation that caused the error is then
terminated and the state flags are cleared by a call to clear(rdstate());.

The exception thrown here is of a standard exception class, failure. This type is
defined as a public element in the ios base class and comprises the virtual method
what() that returns a C string containing the cause of the error. The exception handler
will normally send the string to standard error output.

You can call exceptions() without any arguments to discover the state flags in a
status-word of a stream that can cause an exception to be thrown. If a bit is set in the
return value of the exceptions() method, an appropriate exception will be thrown
whenever this error occurs.

Example:   iostate except = fstrm.exceptions();
                      if( except & ios::eofbit) ...

This statement uses a bitwise AND operator to ascertain whether an exception is thrown when end-of-file is reached.

I/O Stream Classes (C++)

During the development of C++ a new class-based input/output system was implemented.
This gave rise to the I/O stream classes, which are now available in a library of
their own, the so-called iostream library.
The diagram on the opposite page shows how a so-called class hierarchy develops due
to inheritance. The class ios is the base class of all other stream classes. It contains the
attributes and abilities common to all streams. Effectively, the ios class

  • manages the connection to the physical data stream that writes your program’s
    data to a file or outputs the data on screen.
  • contains the basic functions needed for formatting data. A number of flags that
    determine how character input is interpreted have been defined for this purpose.    
The istream and ostream classes derived from ios form a user-friendly interface
for stream manipulation. The istream class is used for reading streams and the
ostream class is used for writing to streams. The operator >> is defined in istream
and << is defined in ostream, for example.

The iostream class is derived by multiple inheritance from istream and ostream
and thus offers the functionality of both classes.

Further stream classes, a file management class, for example, are derived from the
classes mentioned above. This allows the developer to use the techniques described for file manipulation.

Google Glass

Google Glass is a project which developed under Google .It is a prototype for a transparent Heads-up Display.The project name is "Project Glass"  The main purpose of this project is the hands free displaying of information currently available o most smartphone users.
This project is running in Google X lab.The technology involves the virtual world with real world.The first appearance of Glass was on Sergey Brin who wore it to an 5 April 2012 public event in San Francisco. 
Heads-up eye displays are not new.The land warrior system developed by the US Army over the past decade.Many well known inventors have contributed eye display technology,research and applications over the past two decades including Steve Mann,Thad Starner is easy to wear and  make very fast to access maps,documents,videos,chats and much more. 

How it Works

The Device  communicate with mobile phones through wi-fi and display contents on the video screens as well as respond to the video commands of the user.It mainly concentrates on the social networking,navigation and communication.The video camera senses the environment and recognizes the objects and peoples around.The whole working of the Glass is depend on the voice commands of the user.

google glass

Under the Google Glass terms of service for the Glass Explorer pre-public release program, it specifically states, "you may not resell, loan, transfer, or give your device to any other person. If you resell, loan, transfer, or give your device to any other person without Google's authorization, Google reserves the right to deactivate the device, and neither you nor the unauthorized person using the device will be entitled to any refund, product support, or product warranty." This helps to prevent users from hijacking the device.
  Wired  commented on this policy of a company claiming ownership of its product after it had been sold, saying: "Welcome to the New World, one in which companies are retaining control of their products even after consumers purchase them. Others pointed out that Glass was not for public sale at all, but rather in private testing for selected developers, and that not allowing developers in a closed beta to sell to the public is not the same as banning consumers from reselling a publicly released device.


How to install PhpMyAdmin

Phpmyadmin is used for database management.There are several other software which we need for using it. 
  1. One server (apache, wampserver).
  2. Mysql database.
  3. PHP environment.
  4. Phpmyadmin 4.3 or later.

1) First install Mysql databse on system.

2) After that install apache in system drive in a self made folder.You can named it as you want.

3) After it extract PHP in that folder.

4) After that change file into php.ini .

5) After that extract phpmyadmin zip file into apache/htdocs folder.

6) After that copy phpinfo.php file from phpmyadmin folder into apche /htdocs.

7)  After that open the browser and type "localhost/phpinfo.php". You will see the follwing  window :

PHPMYADMIN description