Thursday, 18 July 2013

php interview questions and answers for experienced

php interview questions and answers for experienced

1:What is the value of $b in the following code?
    $a="5 USD";
    $b=10+$a;
    echo $b;
?>

Ans:15
2:What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
  In the get method the data made available to the action page ( where data is received ) by the URL so data can be seen in the address bar. Not advisable if you are sending login info like password etc.

In the post method the data will be available as data blocks and not as query string. 
3:What is GPC?
G – Get
P – Post
C – Cookies
4:What are super global arrays?
All variables that come into PHP arrive inside one of several special arrays known collectively as the superglobals. They're called superglobal because they are available everywhere in your script, even inside classes and functions.
5:Give some example for super global arrays?
$GLOBALS
$_GET
$_POST
$_SESSION
$_COOKIE
$_REQUEST
$_ENV
$_SERVER
6:What's the difference between COPY OF A FILE & MOVE_UPLOAD_FILE in file uploading?

MOVE_UPLOAD_FILE :   This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination.
If filename is not a valid upload file, then no action will occur, and move_uploaded_file() will return FALSE.
Copy :Makes a copy of a file. Returns TRUE if the copy succeeded, FALSE otherwise.
7:When I do the following, the output is printed in the wrong order:

function myfunc($argument) {
        echo $argument + 10;
      }
      $variable = 10;
 echo "myfunc($variable) = " . myfunc($variable);

What's going on?
To be able to use the results of your function in an expression (such as concatenating it with other strings in the example above), you need to return the
value, not echo it.
8:What are the Formatting and Printing Strings available in PHP?
     
Function                     Description
printf()    :                 Displays a formatted string
sprintf()   :                 Saves a formatted string in a variable
fprintf()   :                 Prints a formatted string to a file
number_format()  :   Formats numbers as strings
9:Explain the types of string comparision function in PHP.
    
      Function              Descriptions
strcmp()             :Compares two strings (case sensitive)
strcasecmp()      :Compares two strings (not case sensitive)
strnatcmp(str1, str2) :Compares two strings in ASCII order, but
                                    any numbers are compared numerically
strnatcasecmp(str1, str2):Compares two strings in ASCII order,
                                          case insensitive, numbers as numbers
strncasecomp()  : Compares two strings (not case sensitive)
                            and allows you to specify how many characters
                             to compare
strspn()             : Compares a string against characters represented
                             by a mask
strcspn()           : Compares a string that contains characters not in
                            the mask
10:Explain soundex() and metaphone().
      soundex()
The soundex() function calculates the soundex key of a string. A soundex key is a four character long alphanumeric string that represent English pronunciation of a word. he soundex() function can be used for spelling applications.
$str = "hello";
echo soundex($str);
?>
metaphone()
The metaphone() function calculates the metaphone key of a string. A metaphone key represents how a string sounds if said by an English speaking person. The metaphone() function can be used for spelling applications.
echo metaphone("world");
?>
11:What do you mean range()?
      Starting from a low value and going to a high value, the range() function creates an array of consecutive integer or character values. It takes up to three arguments: a starting value, an ending value, and an increment value. If only two arguments are given, the increment value defaults to 1.
Example :
echo range(1,10); // Returns 1,2,3,4,5,6,7,8,9,10
?>
12:How to read and display a HTML source from the website url?
      $filename="http://www.kaptivate.in/";
$fh=fopen("$filename", "r");
while( !feof($fh) ){
$contents=htmlspecialchars(fgets($fh, 1024));
print "
$contents
";
}
fclose($fh);
?>13:What is properties of class?
Class member variables are called "properties". We may also see them referred to using other terms such as "attributes" or "fields", but for the purposes of this reference we will use "properties". They are defined by using one of the keywords public, protected, or private, followed by a normal variable declaration. This declaration may include an initialization, but this initialization must be a constant value that is, it must be able to be evaluated at compile time and must not depend on run-time information in order to be evaluated.
14:How to use HTTP Headers inside PHP? Write the statement through which it can be added?
                HTTP headers can be used in PHP by redirection which is written as:
The headers can be added to HTTP response in PHP using the header(). The response headers are sent before any actual response being sent. The HTTP headers have to be sent before taking the output of any data. The statement above gets included at the top of the script.
15:Why we used PHP?
Because of several main reason we have to use PHP. These are:
1.PHP runs on many different platforms like that Unix,Linux and Windows etc.
2.It codes and software are free and easy to download.
3.It is secure because user can only aware about output doesn't know how that comes.
4.It is fast,flexible and reliable.
5.It supports many servers like: Apache,IIS etc.
16:Arrays  in PHP?
 Create array in PHP to solved out the problem of writing same variable name many time.In this we create a array of variable name and enter the similar variables in terms of element.Each element in array has a unique key.Using that key we can easily access the wanted element.Arrays are essential for storing, managing and operating on sets of variables effectively. Array are of three types:
1.Numeric array
2.Associative array
3.Multidimensional array
 Numeric array is used to create an array with a unique key.Associative array is used to create an array where each unique key is associated with their value.Multidimensional array is used when we declare multiple arrays in an array.
17:What is foreach loop in  php?
foreach:Uses, When When we want execute a block of code for each element in an array.
Syntax:
foreach (array as value)
{
    code will be executed;
}
eg:
$arr=array("one", "two", "three");
foreach ($arr as $value)
{
  echo "Value: " . $value . "
";
}

?> 
18:How we used $_get and $_post variable in PHP?
   We know that when we use $_GET variable all data_values are display on our URL.So,using this we don't have to send secret data (Like:password, account code).But using we can bookmarked the importpage.
 We use $_POST variable when we want to send data_values without display on URL.And their is no limit to send particular amount of character.
Using this we can not bookmarked the page.
19:Why we use $_REQUEST variable?
We use $_REQUEST variable in PHP to collect the data_values from $_GET,$_POST and $_COOKIE variable.
Example:
R4R Welcomes You .

You are years old!
20:How we handle errors in PHP?Explain it?
In PHP we can handle errors easily.Because when error comes it gives error line with their respective line and send error message to the web browser.
When we creating any web application and scripts. We should handle errors wisely.Because when this not handle properly it can make bg hole in security.
In PHP we handle errors by using these methods:
1.Simple "die()" statements
2.Custom errors and error triggers
3.Error reporting
21: How we use Custom errors and error triggers error handling method in PHP?
In Custom errors and error triggers,we handle errors by
using self made functions.
1.Custom errors : By using this can handle the multiple
errors that gives multiple message.
Syntax:
set_error_handler(\\\"Custom_Error\\\");
In this syntax if we want that our error handle, handle
only one error than we write only one argument otherwise
for handle multiple errors we can write multiple arguments.

Example:
//function made to handle errorfunction
custom_Error($errorno, $errorstr) 
{  
   echo \\\"Error: [$errorno] $errorstr\\\";  }
//set error handler like that
set_error_handler(\\\"custom_Error\\\");
//trigger to that error
echo($verify);?>

2.error trigger : In PHP we use error trigger to handle
those kind of error when user enter some input data.If
data has an error than handle by error trigger function.
Syntax:

$i=0;if ($i<=1)
{
trigger_error(\\\"I should be greater than 1 \\\");
}
?>
In this trigger_error function generate error when i is
less than or greater than 1.
22:What do you understand about Exception Handling in PHP?
In PHP 5 we introduce a Exception handle to handle run time exception.It is used to change the normal flow of the code execution if a specified error condition occurs.
An exception can be thrown, and caught("catched") within PHP. Write code in try block,Each try must have at least one catch block. Multiple catch blocks can be used to catch different classes of exceptions.
Some error handler methods given below:
1.Basic use of Exceptions
2.Creating a custom exception handler
3.Multiple exceptions
4.Re-throwing an exception
5.Setting a top level exception handler
23: What is the difference b/n 'action' and 'target' in form tag?
Action: 
    Action attribute specifies where to send the form-data when
a form is submitted.
    Syntax:
    Example:
action="formValidation.php">
Target:
    The target attribute specifies where to open the action URL.
     Syntax:
        Value:
         _blank – open in new window
        _self- Open in the same frame as it was clicked
        _parent- Open in the parent frameset
        _top- Open in the full body of the window
        Framename- Open in a named frame24:What do you understand about PHP accelerator ? 
Basically PHP accelerator is used to boost up the performance of PHP programing language.We use PHP accelerator to reduce the server load and also use to enhance the performance of PHP code near about 2-10 times.In one word we can say that PHP accelertator is code optimization technique.
26:How we use ceil() and floor() function in PHP?
ceil() is use to find nearest maximum values of passing value.
Example:
$var=6.5;
$ans_var=ceil($var);
echo $ans_var;
Output:
7
floor() is use to find nearest minimum values of passing value.
Example:
$var=6.5
$ans_var=floor($var);
echo $ans_var; 
Output:
6
27:What is the answer of following code
echo 1< 2 and echo 1 >2 ?

Output of the given code are given below:
echo 1<2
output: 1
echo 1>2
output: no output
28: What is the difference b/w isset and empty? 
The main difference b/w isset and empty are given below:
isset: This variable is used to handle functions and checked a variable is set even through it is empty.
empty: This variable is used to handle functions and checked either variable has a value or it is an empty string,zero0 or not set at all.

PHP Interview Questions and Answers ->

What is PHP?
-->
PHP (Hyper text Pre Processor) is a scripting language commonly used for web applications. PHP can be easily embedded in HTML. PHP generally runs on a web server. It is available for free and can be used across a variety of servers, operating systems and platforms.
What are the differences between GET and POST methods in form submitting, give the case where we can use get and we can use post methods?
-->
On the server side, the main difference between GET and POST is where the submitted is stored. The $_GET array stores data submitted by the GET method. The $_POST array stores data submitted by the POST method. 

On the browser side, the difference is that data submitted by the GET method will be displayed in the browser's address field. Data submitted by the POST method will not be displayed anywhere on the browser. 

GET method is mostly used for submitting a small amount and less sensitive data. POST method is mostly used for submitting a large amount or sensitive data.
Who is the father of php and explain the changes in php versions?
-->
Rasmus Lerdorf for version changes go to http://php.net/ Marco Tabini is the founder and publisher of php|architect.
How can we submit from without a submit button?
-->
We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to submit the form.
How many ways we can retrieve the date in result set of mysql Using php?
-->
As individual objects so single record or as a set or arrays.
What is the difference between $message and $$message?
-->
They are both variables. But $message is a variable with a fixed name. $$message is a variable who's name is stored in $message. For example, if $message contains "var", $$message is the same as $var.
What are the differences between require and include, include_once?
-->
File will not be included more than once. If we want to include a file once only and further calling of the file will be ignored then we have to use the PHP function include_once(). This will prevent problems with function redefinitions, variable value reassignments, etc.
What are the different tables present in mysql?
-->
Total 5 types of tables we can create 

1. MyISAM 

2. Heap 

3. Merge 

4. InnoDB 

5. ISAM 

6. BDB 

MyISAM is the default storage engine as of MySQL 3.23.
How can I execute a php script using command line?
-->
Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program. 

Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.
What is meant by nl2br()?
-->
Nl2br Inserts HTML line breaks before all newlines in a string string nl2br (string); For example: echo nl2br("god bless you")

will output "god bless you" to your browser.
What are the current versions of apache, php, and mysql?
-->
PHP: php 5.3 
MySQL: MySQL 5.5 
Apache: Apache 2.2
What are the reasons for selecting lamp (Linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?
-->
All of those are open source resource. Security of linux is very very more than windows. Apache is a better server that IIS both in functionality and security. Mysql is world most popular open source database. PHP is more faster that asp or any other scripting language.
How can we encrypt and decrypt a data present in a mysql table using mysql?
-->
AES_ENCRYPT () and AES_DECRYPT ()
How can we encrypt the username and password using php?
-->
You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD("Password"); We can encode data using base64_encode($string) and can decode using base64_decode($string);
What are the different types of errors in php?
-->
E_ERROR: A fatal error that causes script termination 
E_WARNING: Run-time warning that does not cause script termination 
E_PARSE: Compile time parse error. 
E_NOTICE: Run time notice caused due to error in code 
E_CORE_ERROR: Fatal errors that occur during PHP's initial startup (installation) 
E_CORE_WARNING: Warnings that occur during PHP's initial startup 
E_COMPILE_ERROR: Fatal compile-time errors indication problem with script. 
E_USER_ERROR: User-generated error message. 
E_USER_WARNING: User-generated warning message. 
E_USER_NOTICE: User-generated notice message. 
E_STRICT: Run-time notices. 
E_RECOVERABLE_ERROR: Catchable fatal error indicating a dangerous error 
E_ALL: Catches all errors and warnings
What is the functionality of the function htmlentities?
-->
Answer: htmlentities Convert all applicable characters to HTML entities This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.
What is meant by urlencode and urldocode?
-->
Urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode("10.00%") will return "10%2E00%25?. URL encoded strings are safe to be used as part of URLs. 
urldecode() returns the URL decoded version of the given string.
What is the difference between the functions unlink and unset?
-->
Unlink() deletes the given file from the file system. 
unset() makes a variable undefined.
How can we register the variables into a session?
-->
We can use the session_register ($ur_session_var) function.
How can we get the properties (size, type, width, height) of an image using php image functions?
-->
To know the Image type use exif_imagetype () function 
To know the Image size use getimagesize () function 
To know the image width use imagesx () function 
To know the image height use imagesy() function
What is the maximum size of a file that can be uploaded using php and how can we change this?
-->
You can change maximum size of a file set upload_max_filesize variable in php.ini file.
How can we increase the execution time of a php script?
-->
Set max_execution_time variable in php.ini file to your desired time in second.
How can we take a backup of a mysql table and how can we restore it.?
-->
Create a full backup of your database: shell> mysqldump tab=/path/to/some/diropt db_name Or: shell> mysqlhotcopy db_name /path/to/some/dir The full backup file is just a set of SQL statements, so restoring it is very easy: 

shell> mysql "."Executed"; 
mysql_close($link2);
How many ways can we get the value of current session id?
-->
session_id() function returns the session id for the current session.
How can we destroy the session, how can we unset the variable of a session?
-->
session_destroy
session_unset
How can we destroy the cookie?
-->
Set same the cookie in past
What is the difference between ereg_replace() and eregi_replace()?
-->
eregi_replace() function is identical to ereg_replace() except that this ignores case distinction when matching alphabetic characters.eregi_replace() function is identical to ereg_replace() except that this ignores case distinction when matching alphabetic characters.
How can we know the count/number of elements of an array?
-->
2 ways 
a) sizeof($urarray) This function is an alias of count() 
b) count($urarray)
interestingly if u just pass a simple var instead of a an array it will return 1.
What is the maximum length of a table name, database name, and fieldname in mysql?
-->
Database name- 64 
Table name -64 Fieldname-64
How many values can the SET function of mysql takes?
-->
Mysql set can take zero or more values but at the maximum it can take 64 values
What is maximum size of a database in mysql?
-->
If the operating system or filesystem places a limit on the number of files in a directory, MySQL is bound by that constraint. 
The efficiency of the operating system in handling large numbers of files in a directory can place a practical limit on the number of tables in a database. If the time required to open a file in the directory increases significantly as the number of files increases, database performance can be adversely affected. 
The amount of available disk space limits the number of tables. 
MySQL 3.22 had a 4GB (4 gigabyte) limit on table size. With the MyISAM storage engine in MySQL 3.23, the maximum table size was increased to 65536 terabytes (2567 â€" 1 bytes). With this larger allowed table size, the maximum effective table size for MySQL databases is usually determined by operating system constraints on file sizes, not by MySQL internal limits. 
The InnoDB storage engine maintains InnoDB tables within a tablespace that can be created from several files. This allows a table to exceed the maximum individual file size. The tablespace can include raw disk partitions, which allows extremely large tables. The maximum tablespace size is 64TB. 
The following table lists some examples of operating system file-size limits. This is only a rough guide and is not intended to be definitive. For the most up-to-date information, be sure to check the documentation specific to your operating system. 
Operating System File-size Limit 
Linux 2.2-Intel 32-bit 2GB (LFS: 4GB) 
Linux 2.4+ (using ext3 filesystem) 4TB 
Solaris 9/10 16TB 
NetWare w/NSS filesystem 8TB 
Win32 w/ FAT/FAT32 2GB/4GB 
Win32 w/ NTFS 2TB (possibly larger) 
MacOS X w/ HFS+ 2TB
What is meant by MIME?
-->
Multipurpose Internet Mail Extensions.
WWW ability to recognise and handle files of different types is largely dependent on the use of the MIME (Multipurpose Internet Mail Extensions) standard. The standard provides for a system of registration of file types with information about the applications needed to process them. This information is incorporated into Web server and browser software, and enables the automatic recognition and display of registered file types.
What is meant by PEAR in php?
-->
PEAR is short for "PHP Extension and Application Repository" and is pronounced just like the fruit. The purpose of PEAR is to provide: 
A structured library of open-sourced code for PHP users 
A system for code distribution and package maintenance 
A standard style for code written in PHP 
The PHP Foundation Classes (PFC), 
The PHP Extension Community Library (PECL), 
A web site, mailing lists and download mirrors to support the PHP/PEAR community 
PEAR is a community-driven project with the PEAR Group as the governing body. The project has been founded by Stig S. Bakken in 1999 and quite a lot of people have joined the project since then. 

http://pear.php.net/manual/en/about.pear.php
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
-->
Mysql_fetch_array Fetch a result row as an associative array, a numeric array, or both. 
mysql_fetch_object ( resource result ) 
Returns an object with properties that correspond to the fetched row and moves the internal data pointer ahead. Returns an object with properties that correspond to the fetched row, or FALSE if there are no more rows 
mysql_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.
What is PHP?
-->
PHP Version 3.0 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
What is the difference between include and require?
-->
If you require a file and it cannot be found, the script will terminate with a fatal error. If you use include then you will get an error but the script will continue to execute. Therefore when the information you wish to reference from another file is essential to the correct running of a page, use require.
Is PHP a case sensitive programming language?
-->
PHP is a partially case sensitive programming language. We can use function names, class names in case insensitive manner.
What is mean by LAMP?
-->
LAMP means combination of Linux, Apache, MySQL and PHP.
How do you get the user's ip address in PHP?
-->
Using the server variable: $_SERVER['REMOTE_ADDR']
How do you make one way encryption for your passwords in PHP?
-->
Using md5 function or sha1 function
What is meant by PEAR in php?
-->
Answer1: PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install "packages" 
Answer2: 
PEAR is short for "PHP Extension and Application Repository" and is pronounced just like the fruit. The purpose of PEAR is to provide: 
A structured library of open-sourced code for PHP users 
A system for code distribution and package maintenance 
A standard style for code written in PHP 
The PHP Foundation Classes (PFC), 
The PHP Extension Community Library (PECL), 
A web site, mailing lists and download mirrors to support the PHP/PEAR community 
PEAR is a community-driven project with the PEAR Group as the governing body. The project has been founded by Stig S. Bakken in 1999 and quite a lot of people have joined the project since then.
How can we repair a MySQL table?
-->
The syntex for repairing a mysql table is: 

REPAIR TABLE tablename 
REPAIR TABLE tablename QUICK 
REPAIR TABLE tablename EXTENDED 

This command will repair the table specified. 
If QUICK is given, MySQL will do a repair of only the index tree. 
If EXTENDED is given, it will create index row by row.
What is the difference between echo and print statement?
-->
Echo() can take multiple expressions,Print cannot take multiple expressions. 

Print return true or false based on success or failure whereas echo just does what its told without letting you know whether or not it worked properly.
What are the features and advantages of OBJECT ORIENTED PROGRAMMING?
-->
One of the main advantages of OO programming is its ease of modification; objects can easily be modified and added to a system there by reducing maintenance costs. OO programming is also considered to be better at modeling the real world than is procedural programming. It allows for more complicated and flexible interactions. OO systems are also easier for non-technical personnel to understand and easier for them to participate in the maintenance and enhancement of a system because it appeals to natural human cognition patterns. 

For some systems, an OO approach can speed development time since many objects are standard across systems and can be reused. Components that manage dates, shipping, shopping carts, etc. can be purchased and easily modified for a specific system. 

Windows vs. Linux Hosting

Windows vs. Linux Hosting

Web hosting systems are as varied as genders. There are basically only two kinds with a few of transgender sprinkled in. The two choices are Windows and Linux. In the battle of Windows vs. Linux who will come out the victor? Is Windows hosting better than Linux hosting? The decision to choose one web hosting system over another is usually determined by what type of scripting languages you need.

Linux hosting

Linux was once the king penguin of the web hosting world. While the Linux web hosting platform is still the most popular, it has decreased greatly because of the emergence of Windows. "Linux hosting" really covers hundreds of different flavors of Linux and Unix variants such as FreeBSD. Linux offers several benefits over Windows including:
  • Cost. For web hosts, Linux is free, which is a wee bit cheaper than Windows, and they are able to pass those savings on to you so you pay a smaller payment.
  • Diverse scripting language support. Whether you need PHPRuby on RailsPerl, or Python, a Linux web hosting platform will usually support them all by default.
Linux disadvantages include:
  • ASP and .NET support. While there is software like Chilisoft ASP and Apache::ASP at enables ASP on Linux machines, it is far less common to find a Linux web hosting platform that supports ASP or .NET.

Windows hosting

Many people think they need to get Windows hosting because their desktop computer is Windows. Not so. A Windows server is very different that a Windows desktop and most of your interaction with your web server will be through FTP or a web interface anyway. One of the biggest advantages of Windows hosting vs. Linux hosting is its ability to run classic ASP or .NET scripts. These languages can be very powerful and are becoming more and more popular. The disadvantages of a Windows hosting platform include:
  • Availability. Windows is currently much less popular than Linux so it can be difficult to find a Windows web hosting system with the exact features that you need. Use the web hosting wizard to make the process much easier.
  • Cost: Windows web hosting usually costs more than Linux web hosting. Sometimes by a lot.

Windows vs. Linux hosting: What is the same?

When comparing Windows vs. Linux hosting there are many rumors you may have heard about why one is better than the other. In reality, there are several things that are virtually the same whether you choose Windows hosting or Linux hosting:
  • Performance. On both platforms the speed and efficiency will be comparable when an experienced administrator manages it.
  • Stability. While Windows web hosting systems were notoriously unstable in the past, the stability between a Windows server and a Linux server today is negligible.
  • Static pages. Windows platforms and Linux platforms can host static HTML file almost identically.
  • Ease of use. Most interaction with your web hosting system will be through FTP or a server's control panel. So even if Windows provides a nice GUI interface, you aren't likely to use it anyway.
  • Security. Though the topic could be argued by operating system purists, today, both web hosting platforms are comparably secure.

What web hosting platform should you use?

Windows vs. Linux Hosting. Who is the winner? That is up to you. If you need to use ASP or .NET then you need to use a Windows web hosting platform. Otherwise, you should be fine with the more popular and cheaper web hosting platform: Linux. Find the best Windows or Linux hosting plan using the web hosting wizard. Also check out the list of Best Windows Web Hosting.

What is Web Hosting?

What is web hosting? Essentially, web hosting is a service that allows your web pages to be available on the Internet for everyone else to see. Wikipedia answers the question "What is Web Hosting" this way: "A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation."

Web hosting introduction

Web Hosting Server Rack - What is Web Hosting?
So what is web hosting? Putting web sites on the Internet. Who can do web hosting? Really, anyone with a web server (i.e. a computer) and an Internet connection can be a web host. That means that you could host your own web pages on your own computer instead of paying a web host to do it. What is the problem with this? There are many:
  • Uptime. If you ever restarted your computer, your web site would go down. Web hosts keep most web servers running constantly and rarely restart them.
  • Updates. The Internet is a dangerous place. People are constantly trying to hack. If you don’t keep your computer up-to-date like most web hosts do then you would be an easy target for a hacker.
  • Knowledge. There is a lot involved with setting up a web server with all the programs that are needed. Not to mention setting up FTP, PHP, SSL, or mail functions.
  • Computer speed and Internet connection. The faster your computer the better. The biggest bottleneck, though, is your Internet connection. Web hosts usually have a ton of bandwidth unlike your home or business Internet connection. You won’t be able to handle many visitors if you don't have a fast Internet connection.
So a web host can be easily worth the monthly cost as long as they do their job well. Whenchoosing a web host, you just need to find one that has all the features you needs, has a good rating, and is in your price range.
Web hosting comes in all different shapes and sizes. There is free web hosting, shared web hosting, reseller web hosting, virtual private server hostingdedicated hosting, clustered hosting, and collocation hosting. Though there are many different types, most small websites work great on cheap, shared hosting. You can get web hosting on a Windows server or a Linux server. Hosting can come with lots of bandwidth or disk space or just a little. You can get hosting with various programming languages such as PHP, ASP, .NET, Perl, or Ruby on Rails. Different databases may be supported such as MySQL, PostgreSQL, or MS SQL. You can get hosting that comes with free scripts or content management systems. One of the biggest factors in deciding on a web host is how good their support is.
To recap: What is web hosting? If you want your web site to be available to others on the Internet, you need web hosting. A web host will provide you with a computer that you can upload your web site to. There are many different kinds of web hosting so be sure to understand the different options before buying web hosting. Learn about the basic web hosting options.

What is cPanel?

What is cPanel? cPanel is web hosting control panel software that lets you quickly manage your web site and hosting options using a graphical, web-based interface. cPanel lets you manage an unlimited number of websites, email accounts, etc. cPanel control panel automates many tasks to make it easier for web hosts to sell hosting and for customers to manage their own accounts with ease. cPanel control panel lets you:
Site Tools
  • Create and manage new domains
  • Create and manage subdomains
  • Manage FTP accounts (add, remove, change password)
  • Upload and manage files using a File Manager
  • Set up redirects
  • Edit MIME types
  • Edit Apache handlers
  • Install and Uninstall FrontPage Extensions
  • View web page statistics
  • View error and usage logs
Mail
  • Create and manage email accounts
  • Access webmail
  • Set-up auto-responders
  • Implement custom mail filtering
  • Set-up forwarders or aliases
  • Set up mailing lists
  • Modify an MX entry
  • Manage spam filtering
Advanced Tools
  • Backup web site files and restore backups
  • Set up SSH access
  • Manage GPG keys
  • Set up Cron jobs
  • Install scripts such as forums, polls, etc.
  • Manage MySQL , PostgreSQL, or other databases
What is cPanel Control Panel?
It will only run on a Linux web hosting system. cPanel provides many informative guides on how to install and use cPanel control panel on their website so you can easily find more answers to the question, "What is cPanel".
What is cPanel good for? Quickly and simply establishing and managing hundreds of web sites. The cPanel control panel has grown to become the most popular web hosting control panel in use today. It has practically every feature that you would want to set up your web site on shared hosting. You can learn about what is cPanel on cPanel's own website and explore its features, benefits, and even try out a demo of cPanel.


How to format a computer and Reinstall Microsoft Windows


Format Windows 7


how to format and install Windows 7Windows 7 is far better than previous windows versions (XP and Vista). The install process is plain simple and easy to follow. Big Bravo! for Microsoft for this. Now, just follow these steps and you will install windows 7 in no time
You can Install Windows 7 via DVD Disk you’ve purchased or with bootable USB.
This post explains installing windows 7 with dvd disk.
- 31 steps total, every step is screen-captured

First, insert your Windows 7 Boot Disk into your dvd drive and reboot your PC
  • While the PC is rebooting, you will be prompted ” Press any key to boot from CD…” Just press any key here

  • After you press a key, windows will load installation files.
  • Windows 7 setup will start
  • Select your language, time and currency format and keyboard input (US)
  • Click Install Now to proceed
  • Setup will load for a min or two
  • If you do, select I accept the license terms and click Next
  • If you are upgrading from Windows Vista select Upgrade, if you had Windows XP you have to select Custom (Advanced). Upgrade from Windows XP to Windows 7 is not available. Click Custom (Advanced)
  • Select the Partition where you want to install Windows 7 and click Next. You will need at least 5716mb free space.
  • If you don’t have enough free space to Install Windows 7, you will receive the following warning
  • If that’s the case, you will need to format the partition where you previously had Operating System installed. WARNING: Formatting a partition will erase all existing data on the partition, proceed only if you have backed up all your files!
  • If you want to format the partition, go to Drive options
    and format the partition where you want to install windows 7. Again, do this only if you have backed up your documents/files!
    click format and then yes
  • After you press Next, Windows 7 Installation will begin. Approximately takes about 30 min to 1 hour to finish, depending on your computer speed.
  • After half an hour, setup is complete and windows 7 installation is almost finished. Few more minutes
  • Now your computer will reboot, since the Windows 7 DVD boot disk is still in the drive, the message press any key to boot from DVD will appear. We already did that, so this time DO NOT press anything. Just wait 5 sec and your PC will continue booting and finish installing your operating system.
  • Windows will continue booting and installing, almost there!

  • Finally!
    Insert your name (this will be your windows username)
  • If you want to, insert password for your computer. ( Hey….you won’t forget it, right? :) )
  • Insert your Windows 7 product key and press Next
  • Do you want Microsoft Updates for your new operating system? It is highly recommend you know…! Select use recommended settings
  • It’s time for Time zone, select yours from the drop down menu
  • Depending on your location, select the appropriate network location.
  • If you have more than 1 computer, type homegroup password for sharing files. Make sure to remember it
  • Windows is finalizing your settings
  • Can you see the finish line ? Yup, we’re there
  • That’s it. Now insert your computer manufacturer drivers CD and install drivers. Also FYI, Windows 7 has great driver support, go to Start –> Control Panel –> Select View By = Small Icons –> Click Windows Update
  • Check for updates and click on optional updates, to see which drivers windows 7 found for your computer automatically.
  • Install Windows 7 - Welcome screen

Monday, 15 July 2013

Plugins URL wordpress


captcha

http://wordpress.org/plugins/really-simple-captcha/

contact-form

http://wordpress.org/plugins/contact-form-7/

gallery

http://wordpress.org/plugins/lazyest-gallery/screenshots/

on line exam

http://wordpress.org/plugins/watu/


wp-rss-multi-importer

http://wordpress.org/plugins/wp-rss-multi-importer/

slider

1.http://wordpress.org/plugins/content-slide/
2.http://wordpress.org/plugins/slideshow-manager/
3.http://wordpress.org/plugins/coin-slider-4-wp/


woo commerce

http://wordpress.org/plugins/woocommerce/

backupwordpress

http://wordpress.org/plugins/backupwordpress/

events-manager

http://wordpress.org/plugins/events-manager/

image-widget

http://wordpress.org/plugins/image-widget/

Live Chat

http://wordpress.org/plugins/live-chat/

PHP Code Widget

http://wordpress.org/plugins/php-code-widget/

Social Media Widget

http://wordpress.org/plugins/social-media-widget/

Custom Login and Dashboard

http://wordpress.org/plugins/erident-custom-login-and-dashboard/

Login With Ajax

http://wordpress.org/plugins/login-with-ajax/

WP Login Box


http://wordpress.org/plugins/wp-login-box/

WP-Members

http://wordpress.org/plugins/wp-members/



Saturday, 13 July 2013

What is Pay Per Click?

PPC advertising, also known as “Paid Search” or “Search Engine Marketing (SEM)”, is the process of paying for advertising on sites and search engines but the advertiser is not charged unless someone clicks on an ad. Most often (but not always) PPC is an auction where you compete for position against other advertisers.
PPC can allow for much quicker wins in visibility or conversions for advertisers whereas SEO is a long term effort of building a community to help your organic presence. While it can take a long time to rank #1 organically on search engine results pages via SEO, advertisers can use PPC ads to appear above organic or SEO results, seen in red in the image above, within minutes of opening an advertising account.
Advertisers select keywords to bid on, which match to the search queries, or actual words users are searching for. Similar to SEO, content (in ads) and relevancy are significant factors in getting ads to show in the top position. Search engines like Google give each ad a quality score (1-10 basis) based off of numerous factors which they unfortunately won’t elaborate much on. That quality score is then multiplied by your bid to get an overall Ad Rank.  In an auction setting like Google’s, an advertiser only ends up paying just a bit more than the one below them, after all Ad Ranks are evaluated. So the amount an advertiser bids is not necessarily what’s charged upon a click.
Why do advertisers pay for these ads when they can try to rank naturally for free?
  • Real-estate on the search engine results pages is at a premium.
  • Many users simply click on the first link of the results page, regardless of whether it’s an ad or an organic listing.
  • The opportunity to generate conversions can be heightened when ads are prominently displayed.
  •  New market segments can be identified, based on what people are searching for, and ads can be shown where an advertiser’s site may not be able to rank naturally.
  • Competitors are likely paying for ads or have the opportunity to, potentially winning new business or taking it from others.
Paid search also spans into other websites outside of popular search engine result pages like Google, Bing and Yahoo and types vary from text, to image, to video among others. The most important thing to remember is that ad relevancy to the searcher/web surfer is most important and will ultimately lead to the most efficient PPC campaigns, depending on an advertiser’s goals.

SEO is about getting a website found and ranking high on search engine results pages. It is also often referred to as organic or natural search results, highlighted in blue above. When a searcher decides to click on these results there is no fee charged to that website.
The hard part is optimizing a site so that the search engines recognize it as highly qualified and relevant to the search query. This process can take time, and there’s no concrete answer for how to rank #1. While clicks on these links may be free, it can take an investment of time and money from a business to make the right optimizations to their site to produce the desired results.
It’s also important to remember that search engines are not real-time rankings; they’re an index of sites the engines have visited over time and they may only visit some sites every few days. A SEO manager’s job is to understand what these search engines deem relevant and high quality in order to make savvy and efficient decisions which will increase natural rankings when a site is surveyed or crawled. In order for a website to rank higher, there are two main factors search engines consider: On-Page and Off-Page factors.
On-Page factors include everything on your website that help search engines find it. Among many other factors, these elements include:
  • Keywords that are relevant to the things people are searching for.
  • The site’s architecture.  For example: load time, internal linking structure, title tags, search friendly URLs, and others.
  • Content on the pages relevant to the products and users.  Content is KING!
Off-Page factors focuses on getting other sites to include a link/reference back to your website. This is seen as a vote of confidence in the eyes of the engines. Known as “Link Building” for SEOs, this process is best managed by building relationships and generating quality links vs. spamming links across the web. 
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
What is Pay Per Click Advertising?
A brief Pay Per Click definition is: PPC is a type of sponsored online advertising that is used on a wide range of websites, including search engines, where the advertiser only pays if a web user clicks on their ad. Hence the title, ‘pay per click.’
When our clients ask us to define Pay Per Click, we tell them that PPC is a very cost-effective means to get their site noticed by their target audience while our other Internet marketing strategies are gradually helping their site achieve their natural ranking potential.
In a way, PPC advertising works like a silent auction. Advertisers place bids on keywords or phrases that they think their target audience would type in a search field when they are looking for specific goods or services. When a web user types a search query into the field of a search engine that matches the advertiser’s keyword list or visits a web page with content that correlates to the keywords or phrases chosen by the advertiser, the PPC ad may be displayed on the page. In search engines, a PPC ad is generally just above or to the right of the search results where they can be easily seen. On other kinds of websites, the ad will be placed in the location that the site designer has determined will be the most advantageous to his site and the advertiser.
To differentiate PPC ads from the natural search results displayed on a page, search engines will often place PPC ads under “Sponsored Ads” or “Sponsored Links” which also makes them easier to notice on a page that is crowded with text and other items competing for a web user’s attention.
Overall, PPC ads are beneficial to advertisers and web users alike. Advertisers get noticed by their target audience and are charged only for the times that their ads are clicked on and web users get to select from sites that may be relevant to the page they are viewing without having to deal with obnoxious banner or pop-up ads that flash and distract.
There are countless pay per click management services out there competing with each other but, without question, the heavyweights in PPC advertising are, in order:
1. Google Adwords
2. Microsoft adCenter
The rates that these outfits charge for a PPC ad vary significantly depending on the popularity of the keyword or phrase. For example, if an advertiser wants a PPC ad targeted for the phrase ‘cottage cheese’, they can get prominent placement for their PPC ad with a very low bid and a low per-click charge. However, for a phrase such as ‘computer’, an advertiser can expect heavy competition for prominent placement and expect to pay premium per-click rates. It all comes down to supply and demand for the keywords and phrases that the advertiser wishes to target.
Pay per click ads also level the playing field like no other form of advertising. A small, web-savvy company can, with a limited budget, outbid much larger companies with enormous advertising budgets and gain the edge they need to get noticed in their market.

Featured post

Life Infotech now a leading brand in the field of technology training

  Life Infotech now a leading brand in the field of technology training & its invites students around the nation to be a part of the Tra...