Documente Academic
Documente Profesional
Documente Cultură
1 of 24
Home (http://www.pcds.co.in/index.php)
http://www.pcds.co.in/php-interview-questions-and-answer.php
eBooks (http://www.pcds.co.in/ebooks-free-download.php)
Jobs (http://www.pcds.co.in/jobs/)
Training (http://www.pcds.co.in/training.php)
Entertainment
Sign Up (register.php)
Login
you like
Give plus 1 if
Ads by Google
ASP PHP
PHP Development
PHP Programming
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
2 of 24
ado-net-interview-questionsand-answers.php)
database?
A. session_start();
B. session_set_save_handler();
C. session_database_object();
D. You cannot store session data in a database.
View Answers
(php-objective-questions-
Next Question
(php-objective-questions-1.php)
Answers : 1
Questions : 2
Answers : 2
http://www.pcds.co.in/php-interview-questions-and-answer.php
Application Packaging
Interview Questions And Answers
What is Full form of PHP ? Who is the father or inventor of
(http://www.pcds.co.in/commonPHP ?
application-packaging-interview-
questions-and-answers.php)
Rasmus Lerdorf is known as the father of PHP that started
Asp Interview Questions And
development of PHP in 1994
for their own Personal Home Page (PHP) and they releasedAnswers (http://www.pcds.co.in
/common-asp-interview-questionsPHP/FI (Forms Interpreter) version 1.0 publicly on 8 June 1995
and-answers.php)
But in 1997 two Israeli developers named Zeev Suraski and
Backbone.js Interview
Andi Gutmans rewrote the parser that formed the base of PHP
Questions And Answers
3 and then changed the language's name to the PHP:
(http://www.pcds.co.in/commonHypertext Preprocessor.
backbone-js-interview-questionsand-answers.php)
C Sharp Interview Questions
What are the differences between PHP3 and PHP4 and And Answers
PHP5 ? what is the current stable version of PHP ? what(http://www.pcds.co.in/commonc-sharp-interview-questionsadvance thing in php7
and-answers.php)
debugger as a SAPI module etc. as still waiting for PHP6 or Cake Interview Questions And
PHP7 with unicode handlig thing
Answers (http://www.pcds.co.in
There are lot of difference among PHP3 and PHP4 and PHP5
/common-cake-interviewversion of php so Difference mean oldest version have less questions-and-answers.php)
functionality as compare to new one like
Questions : 3
Answer : 3
Questions : 4
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
3 of 24
Answers : 4
In PHP Important to
notice the Limitation of
HEADER() function is
that header() must be
called before any actual
output is send. Means
must use header
function before HTML
or any echo stateament
There are Number of
Use of HEADER()
function in php like
below
1> The header()
function use to sends a
raw HTTP header to a
client.
2> We can use herder()
function for redirection
of pages.
3> Use for refresh the
page on given time
interval automatically.
4> To send email
header content like cc,
bcc , reply to etc data
and lot more .
Advertisment
http://www.pcds.co.in/php-interview-questions-and-answer.php
Css Interview Questions And
Answers (http://www.pcds.co.in
/common-css-interview-questionsand-answers.php)
DATA GRID Interview
Questions And Answers
(http://www.pcds.co.in/commondata-grid-interview-questionsand-answers.php)
Data Warehouse Interview
Questions And Answers
(http://www.pcds.co.in/commondata-warehouse-interviewquestions-and-answers.php)
Data Structures Interview
Questions And Answers
(http://www.pcds.co.in/commondata-structures-interviewquestions-and-answers.php)
Electrical Engineering
View Answers (http://www.pcds.co.in/header-functionInterview Questions And Answers
uses-php.php)
Questions : 5
Answers : 5
(http://www.pcds.co.in/commonelectrical-engineering-interviewquestions-and-answers.php)
Questions : 6
Answer : 6
(http://www.pcds.co.in/commonhibernate-interview-questionsand-answers.php)
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
4 of 24
Questions : 7
Answers : 7
Questions : 8
Answers : 8
Questions : 9
Answers : 9
Questions : 10
Answers : 10
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answers (http://www.pcds.co.in
In how many ways we can retrieve the data in the result set
/common-less-interview-questionsof
and-answers.php)
MySQL using PHP? What is the difference between
Linq Interview Questions And
mysql_fetch_object and mysql_fetch_array ?
Answers (http://www.pcds.co.in
/common-linq-interview-questionswe can retrieve the data in the result set of MySQL using PHP
and-answers.php)
in 4 Ways
1. mysqli_fetch_row >> Get a result row as an enumerated Linux Interview Questions And
Answers (http://www.pcds.co.in
array
/common-linux-interview2. mysqli_fetch_array >> Fetch a result row as associative
questions-and-answers.php)
and numeric array
Matlab Interview Questions
3.mysqli_fetch_object >> Returns the current row of a result
And Answers
set as an object
(http://www.pcds.co.in/common4. mysqli_fetch_assoc >> Fetch a result row as an
matlab-interview-questionsassociative array
and-answers.php)
mysqli_fetch_object() is similar to mysqli_fetch_array(), with
Mcitp Interview Questions And
one difference Answers (http://www.pcds.co.in
an object is returned, instead of an array. Indirectly, that means
/common-mcitp-interviewthat
questions-and-answers.php)
we can only access the data by the field names, and not by
Netbackup Interview
their
Questions And Answers
offsets (numbers are illegal property names).
(http://www.pcds.co.in/commonAnswer in Details (http://www.pcds.co.in/mysql-interviewnetbackup-interview-questionsquestions-and-answers.php)
and-answers.php)
Node.js Interview Questions
And Answers
How can we create a database using PHP and MySQL? (http://www.pcds.co.in/commonnode-js-interview-questionsand-answers.php)
We can create MySQL database with the use of
mysql_create_db("Database Name")
Oracle Interview Questions
And Answers
(http://www.pcds.co.in/commonoracle-interview-questionsWhat are the differences between require and include? and-answers.php)
Questions : 11
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
5 of 24
Answers : 11
http://www.pcds.co.in/php-interview-questions-and-answer.php
Questions : 12
Answers : 12
Questions : 13
Answers : 13
Questions : 14
Answers : 14
Questions : 15
Answers : 15
Questions : 16
Answers : 16
There are some defference between GET and POST method Telecom Billing Interview
Questions And Answers
1. GET Method have some limit like only 2Kb data able to send
(http://www.pcds.co.in/commonfor request
telecom-billing-interview-questionsBut in POST method unlimited data can we send
and-answers.php)
2. when we use GET method requested data show in url but
Tomcat Interview Questions
Not in POST method so POST method is good for send
And Answers
sensetive request
(http://www.pcds.co.in/commontomcat-interview-questionsand-answers.php)
Troubleshooting Interview
Questions And Answers
(http://www.pcds.co.in/commonJust run the PHP CLI (Command Line Interface) program and
troubleshooting-interviewprovide the PHP script file name as the command line
questions-and-answers.php)
argument.
Uml Interview Questions And
Answers (http://www.pcds.co.in
/common-uml-interview-questionsand-answers.php)
Suppose your Zend engine supports the mode <? ?> Then
Us Visa Interview Questions
how can u
configure your PHP Zend engine to support <?PHP ?> And Answers
(http://www.pcds.co.in/commonmode ?
us-visa-interview-questionsand-answers.php)
In php.ini file:
Vb Interview Questions And
set
Answers (http://www.pcds.co.in
short_open_tag=on
/common-vb-interview-questionsto make PHP support
and-answers.php)
How can I execute a PHP script using command line?
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
6 of 24
Questions : 17
Answers : 17
Questions : 18
Answers : 18
Questions : 19
Answers : 19
http://www.pcds.co.in/php-interview-questions-and-answer.php
windows-interview-questionsand-answers.php)
Wordpress Interview
Questions And Answers
.htaccess files are configuration files of Apache Server which(http://www.pcds.co.in/commonwordpress-interview-questionsprovide
and-answers.php)
a way to make configuration changes on a per-directory basis.
A file,
Wpf Interview Questions And
(http://www.pcds.co.in
containing one or more configuration directives, is placed in Answers
a
/common-wpf-interview-questionsparticular
and-answers.php)
document directory, and the directives apply to that directory,
and all
XQuery Interview Questions
And Answers
subdirectories thereof.
(http://www.pcds.co.in/commonxquery-interview-questionsand-answers.php)
What is htaccess? Why do we use this and Where?
How we get IP address of client, previous reference page Yii Interview Questions And
etc ?
Answers (http://www.pcds.co.in
/common-yii-interview-questionsBy using
and-answers.php)
$_SERVER['REMOTE_ADDR'],$_SERVER['HTTP_REFERER']
Zend Framework 2 Interview
etc.
Questions And Answers
(http://www.pcds.co.in/commonzend-framework-2-interviewquestions-and-answers.php)
What are the reasons for selecting lamp (Linux, apache,
Zend Framework Interview
MySQL,
Questions And Answers
PHP) instead of combination of other software programs,
(http://www.pcds.co.in/commonservers and
zend-framework-interviewoperating systems?
questions-and-answers.php)
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.
Questions : 20
Answers : 20
Questions : 21
Answers : 21
AES_ENCRYT()
ENCODE()
DES_ENCRYPT()
ENCRYPT()
MD5()
decryption
AES_DECRYPT()
DECODE()
DES_DECRYPT()
Not available
Not available
OLD_PASSWORD()Not available
PASSWORD()
Not available
Not available
UNCOMPRESSED_LENGTH()
SHA() or SHA1()
Questions : 22
Not available
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
7 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answers : 22
Questions : 23
Answers : 23
Questions : 24
Answers : 24
Questions : 25
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
8 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 25
Questions : 26
Answer : 26
Questions : 27
Answers : 27
Questions : 28
Answer : 28
Questions : 29
Answer : 29
there are lots of tools available for asp to PHP conversion. you
can
search Google for that. the best one is available
athttp://asp2php.naken.cc./ (http://asp2php.naken.cc./)
Questions : 30
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
9 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 30
Questions : 31
Answer : 31
$second = date("s");
Questions : 32
Answer : 32
For convert the time zones using PHP we have to first set time
zone
By using PHP function date_default_timezone_set()
If we want to set time zone of 'Europe/London' we have to call
this funtion as
date_default_timezone_set('Europe/London')
so Now generate the timestamp for that particular timezone, on
Sept 1st, 2012 at 8 am
$pcds = mktime(8, 0, 0, 9, 1, 2012);
Now set the other timezone like US/Eastern
date_default_timezone_set('US/Eastern');
date(DATE_RFC1123, $pcds) date(DATE_RFC1123, $pcds)
Output the date in a standard format (RFC1123)
Questions : 33
Answer : 33
sign followed by two hex digits and spaces encoded as plus (+)
signs. It is encoded the same way that the posted data from a
WWW form
is encoded, that is the same way as in
application/x-www-form-urlencoded media type.
urldecode decodes any %##
Questions : 34
Answer : 34
Questions : 35
Answer : 35
$_SESSION['name'] = "sonia";
Questions : 36
Answer : 36
Questions : 37
Answer : 37
By using
$_SERVER['HTTP_USER_AGENT']
variable.
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
10 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Questions : 38
Answer : 38
Questions : 39
Answer : 39
Questions : 40
Answer : 40
Questions : 41
Answer : 41
Questions : 42
Answer : 42
Questions : 43
Answer : 43
Questions : 44
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
11 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 44
Questions : 45
Answer : 45
GET/QueryString
POST
Questions : 46
Answer : 46
Questions : 47
Answer : 47
Sort(), arsort(),
asort(), ksort(),
natsort(), natcasesort(),
rsort(), usort(),
array_multisort(), and
uksort().
Questions : 48
Answer : 48
2 ways
a) sizeof($urarray) This function is an alias of count()
b) count($urarray)
Questions : 49
Answer : 49
Questions : 50
Answer : 50
Questions : 51
Answer : 51
Case Studio
Smart Draw
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
12 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Questions : 52
Answer : 52
Questions : 53
Answer : 53
Directory
stdClass
__PHP_Incomplete_Class
exception
php_user_filter
Questions : 54
Answer : 54
You can maintain two separate language file for each of the
language. all the labels are putted in both language files as
variables
and assign those variables in the PHP source. on runtime
choose the
required language option.
Questions : 55
Answer : 55
Questions : 56
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
13 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 56
Questions : 57
Answer : 57
Questions : 58
Answer : 58
Questions : 59
Answer : 59
Maximum Length
(bytes)
Database64
Table
64
Column 64
Index
Alias
64
255
Questions : 60
Answer : 60
MySQL set can take zero or more values but at the maximum it
can
take 64 values
Questions : 61
Answer : 61
describe Table-Name;
Questions : 62
How many tables will create when we create table, what are
they?
Answer : 62
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
14 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Questions : 63
Answer : 63
Questions : 64
Answer : 64
Questions : 65
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
15 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 65
Questions : 66
Answer : 66
Questions : 67
Answer : 67
Questions : 68
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
16 of 24
Answer : 68
http://www.pcds.co.in/php-interview-questions-and-answer.php
$num_rows = mysql_num_rows($result);
echo "$num_rows rows found";
Questions : 69
Answer : 69
SELECT CURDATE();
CURRENT_DATE() = CURDATE()
for time use
SELECT CURTIME();
CURRENT_TIME() = CURTIME()
Questions : 70
Answer : 70
Questions : 71
Answer : 71
Questions : 72
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
17 of 24
Answer : 72
Question : 73
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 73
Questions : 74
Answer : 74
Questions : 75
Answer : 75
Questions : 76
Answer : 76
Questions : 77
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
18 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 77
Questions : 78
Answer : 78
you can use LOAD DATA INFILE file_name; syntax to load data
from a text file. but you have to make sure thata) data is
delimited
b) columns and data matched correctly
Questions : 79
Answer : 79
SELECT DATEDIFF("2007-03-07","2005-01-01");
Questions : 80
Answer : 80
$date1 = date("Y-m-d");
$date2 = "2006-08-15";
$days = (strtotime($date1) - strtotime($date2)) / (60 * 60 * 24);
Questions : 81
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
19 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answer : 81
by using spl_autoload_register('autoloader::funtion');
Like below
class autoloader
{
public static function moduleautoloader($class)
{
$path = $_SERVER['DOCUMENT_ROOT'] . "/modules
/{$class}.php";
if (is_readable($path)) require $path;
}
public static function daoautoloader($class)
{
$path = $_SERVER['DOCUMENT_ROOT'] . "/dataobjects
/{$class}.php";
if (is_readable($path)) require $path;
}
public static function includesautoloader($class)
{
$path = $_SERVER['DOCUMENT_ROOT'] . "/includes
/{$class}.php";
if (is_readable($path)) require $path;
}
}
spl_autoload_register('autoloader::includesautoloader');
spl_autoload_register('autoloader::daoautoloader');
spl_autoload_register('autoloader::moduleautoloader');
Questions : 82
Answer : 82
Questions : 83
Answers : 83
Questions : 84
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
20 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answers : 84
Questions : 85
Answers : 85
Questions : 86
Answers : 86
Questions : 87
Answers : 87
The PDF functions in PHP can create PDF files using the
PDFlib library With version 6, PDFlib offers an object-oriented
API for PHP 5 in addition to the function-oriented API for PHP
4. There is also the Panda module. FPDF is a PHP class
which allows to generate PDF files with pure PHP, that is to say
without using the PDFlib library. F from FPDF stands for Free:
you may use it for any kind of usage and modify it to suit your
needs. FPDF requires no extension (except zlib to activate
compression and GD for GIF support) and works with PHP4
and PHP5.
Questions : 88
Answers : 88
Questions : 89
Answers : 89
Questions : 90
Answers : 90
Questions : 91
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
21 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answers : 91
Questions : 92
Answers : 92
Questions : 93
Answers : 93
Questions : 94
Answers : 94
Questions : 95
Answers : 95
Questions : 96
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
22 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
Answers : 96
Questions : 97
Answers : 97
Questions : 98
what is CURL?
Answers : 98
Questions : 99
what is PDO ?
Answers : 99
Questions : 100
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
23 of 24
Answers : 100
http://www.pcds.co.in/php-interview-questions-and-answer.php
Go On Top (http://www.pcds.co.in/php-interview-questions-and-answer.php)
PHP
Development
Best
Practices (http://www.pcds.co.in/download-
Professional
PHP
ebooks.php?f=php_development_best_practices.pdf) Programming.
(http://www.pcds.co.in/download-
ebooks.php?f=Professional%20PHP%20Programming.pdf)
Download
zend
whitepaper
(http://www.pcds.co.in/downloadon php
ebooks.php?f=zend_whitepaper_on_php.pdf)
Beginning
Regular
Expressions (
http://www.pcds.co.in/download-
ebooks.php?f=Beginning%20Regular%20Expressions.pdf)
All PHP
Ebooks
download
(http://www.pcds.co.in/download-php-ebook.php)
04-04-2016 06:06
PHP Interview questions and answers for freshers and experienced with pdf
24 of 24
http://www.pcds.co.in/php-interview-questions-and-answer.php
submit
Copyright 2007-2015 PCDS Infotech (P). Ltd. | Site Map (sitemap.html) | About Us (http://www.pcds.co.in/about-us.php) | Services (http://www.pcds.co.in/services.php) |
Partners (http://www.pcds.co.in/partners.php) | Download (http://www.pcds.co.in/downloads.php) | Career (http://www.pcds.co.in/career.php) | Contact us (http://www.pcds.co.in
/contact-us.php)
.Net Interview Questions And Answers
(http://www.pcds.co.in/dot-net-interviewquestions-and-answers.php)
All Interview Questions And Answers
(http://www.pcds.co.in/all-commoninterview-questions-and-answers.php)
Android Common Tips Q and Ans
(http://www.pcds.co.in/common-androidinterview-questions-and-answers.php)
AJAX Interview Questions And
Answers (http://www.pcds.co.in/ajaxinterview-questions-and-answers.php)
Register
Full name
Enter Email id
password
Submit
04-04-2016 06:06