Interview questions
PHP interview questions

What is the difference between Session and Cookie?

There are some differences between Session and Cookie .Following are the some difference: Sessions are stored on the server sides, and cookies are stored on the user’s computers in the text file format. Multiple variables ca not hold by cookies but Session can hold multiple variables. We can set expiry for a cookie and the […]

Read More
Interview questions
PHP interview questions

How do you connet mysql database with PHP ?

We can create MySQL database with the use of : mysql_create_db(“Database Name”) We can connect Mysql Database with PHP using both Procedural and Object oriented style . Following are the examples below: $link = mysqli_connect(“localhost”, “UserName”, “Password”, “database name”); $mysqli = new mysqli(“localhost”, “UserName”, “Password”, “database name”); and in old type of connectivity we use: […]

Read More
Interview questions
PHP interview questions

Differences between PHP versions

The current stable version of PHP is PHP 5.4.11 on 17-01-2013 as still waiting for PHP6 with unicode handling thing in the latest version. There are lot of difference among PHP3 , PHP4 and PHP5 version of php and PHP6 is till in under development process. So we are checking difference between oldest version and […]

Read More
Interview questions
PHP interview questions

What is PHP?

Rasmus Lerdorf is known as the father of PHP and development of PHP started in 1994 for their own Personal Home Page (PHP) and they released (PHP) FI (Forms Interpreter) version 1.0 on 8 June 1995 publicly. But in 1997 two Israeli developers named Zeev Suraski and Andi Gutmans rewrote the parser that formed the […]

Read More
PHP
Programming

Use isset() Instead of strlen()

This is actually a new trick, here is the example: <?php if (isset($username[5])) { // The username is at least six characters long. } ?> When you use string as an array, then each character of string is an element in the array. When you check whether an element exist and of atleast that many […]

Read More
Computer Tips

files not go to the Recycle Bin in Windows

There are two methods of deleting files without not going to recycle bin. 1. With Shift Key: When delete the file, press and hold shift key and press delete button. This will delete the files without not going to the recycle bin. 2. Disable through Recycle bin: For this, there are few steps: Right click […]

Read More