phprockers-logo

Explain about the $_GET variable of PHP?

0 comments
This GET variable is executed when a request is sent from the user for information. This GET gets executed on the server and then information is sent back to the user. The information transmitted through this GET variable is viewable by everyone and is displayed in the address bar of the browser. A maximum of 100 characters is sent by the GET variable.

Difference between mysql_connect and mysql_pconnect?

0 comments
1. mysql_connection must be closed, we can't use this to connect another database means it is suitable for only one database accessing......

2.mysql_pconnect means opens a persistent connection, with this we use same host name, username, and password. we can access different databases at a time in the same program. we can't close the connection.

PHP interview Questions and Answers

0 comments
1. What is CAPTCHA?

CAPTCHA stands for Completely Automated Public Turing Test to tell Computers and Humans Apart. To prevent the users from using bots to automatically fill out forms. CAPTCHA programmers will generate an image containing distorted images of a string of numbers and letters. Computers cannot determine what the numbers and letters are from the image but humans have great pattern recognition abilities and will be able to fairly accurately determine the string of numbers and letters. By entering the numbers and letters from the image in the validation field, the application can be fairly assured that there is a human client using it. To read more look here:
http://en.wikipedia.org/wiki/Captcha

what is the difference between print and echo in php

0 comments
1. echo is faster than print.
2. print returns a int value and echo returns no value / a void value. 
3. print cannot take multiple expressions