SlideShare a Scribd company logo
9/11/2013
1
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
GTU MCA INTERVIEW
QUESTIONS & ANSWERS FOR
PHP
By TOPS Technologies
http://www.tops-int.com/php-training-course.html
9/11/2013
2
TOPSTechnologies:http://www.tops-int.com/php-
training-course.html
GTU MCA INTERVIEW QUESTIONS &
ANSWERS FOR PHP
More then 2000 PHP interview questions and
answers on Basic and advance PHP for both
freshers and experienced candidate of 1 to 6 year
as It covered file system, PHP email, string
functions, header functions, pear classes and
library, regular expression , array sorting, PHP date
format, CURL, PayPal Integration, Shopping cart,
PHP Memcache and php framework like zend
framework symphony, CodeIgniter cake , YII
frameworks etc means all type of PHP questions
are going to be coveredin future. Here is a small
initialization for our PHP students to prepare for
their first industrial interview.
-By TOPS Technologies.
9/11/2013
3
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT IS THE DIFFERENCE BETWEEN
A STATIC AND DYNAMIC WEB SITE?
 A static website is one that is written in HTML only.
Each page is a separate document and there is no
database that it draws on. What this means functionally
is that the only way to edit the site is to go into each
page and edit the HTML - So you would have to do it
yourself using a web page editor such as FrontPage or
Dreamweaver, or pay your web developer to make
updates for you.
A dynamic website is created by webdevelopers who
are strong in ASP.Net, PHP, JAVA and more... This
website pages contains data is retrieved from certain
database. Each time the viewer entering a page, the
contents of that page is retrieved from the database.
The administrator can change the content and images
from admin panel. This is one that changes or
customizes itself frequently and automatically.
9/11/2013
4
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT IS THE MEANING OF OPEN
SOURCE SOFTWARE?
 Open-Source Software (OSS) is computer 
software that is available in source code form: the 
source code and certain other rights normally 
reserved for copyright holders are provided under a 
software license that permits users to study, 
change, improve and at times also to distribute the 
software.Open Source Software means it is a free 
software and no need to buy, we can use full 
functionallities from this software with certain Terms 
& Conditions. This license allows modifications and 
derived works, and allows us to be distributed under 
the same terms as the license of the original 
software.
9/11/2013
5
TOPS Technologies:http://www.tops-
int.com/php-training-course.html
WHY WAS PHP DEVELOPED, WHAT IT
IS USED FOR, AND WHERE CAN YOU
GET IT?
 PHP developed for less script, time saving, Free Open Source 
Software and runs on different platforms such as Windows, 
Linux, Unix, etc. PHP compatible with almost all servers used 
today such as Apache, IIS, etc.
The PHP scripting language resembles JavaScript, Java, and 
Perl, These languages all share a common ancestor, the C 
programming language. PHP has full access to the 
information that the server has, and very little access to 
information that the client has. In fact, it only has information 
that the client tells the server and that the server passes on to 
PHP. Because it is on the server, however, PHP cannot be 
modified by the client. While you cannot necessarily trust the 
information that the client gives to PHP, you can trust that your 
PHP is doing what you told it to do. Because PHP is on the 
server end, your PHP scripts can affect your server -- such as 
by keeping an activity log or updating a database.
9/11/2013
6
TOPS Technologies:http://www.tops-
int.com/php-training-course.html
WHAT ARE THE BENEFITS OF USING
PHP AND MYSQL?
 One of the main reasons that businesses choose PHP is its simplicity and 
ease of use. PHP competes against a number of other web scripting solutions 
such as Active Server Pages and PERL, but none of these languages are as 
easy to learn as PHP. Further, some languages require a moderate amount of 
programming background before a developer can get up to speed in 
development. With PHP, however, even non-programmers have been able to 
develop web-based solutions within a matter of days after going through the 
basic tutorials on PHP. PHP commands are simply embedded into the same 
web page with HTML commands, and execute on the server to deliver the 
web pages to the user.
Another big advantage of PHP is its interoperability with multiple operating 
systems. A company can use PHP with either Linux, Windows or Macs for 
example. They can also use PHP with the popular open source Apache 
server. Compare that with Microsoft’s Active Server Pages, by contrast, which 
is primarily designed for Microsoft-enabled servers. Portability is becoming a 
chief concern for businesses that use one or more operating systems in their 
businesses. Businesses save money by using PHP to leverage their existing 
I.S. resources rather than investing large sums of money to purchase 
proprietary products.
9/11/2013
7
TOPS Technologies:http://www.tops-
int.com/php-training-course.html
WHAT IS FULL FORM OF PHP ? WHO IS
THE FATHER OR INVENTOR OF PHP ?
 Answers : 1Rasmus Lerdorf is known as the 
father of PHP that started development of PHP in 
1994
for their own Personal Home Page (PHP) and they 
released PHP/FI (Forms Interpreter) version 1.0 
publicly on 8 June 1995 But in 1997 two Israeli 
developers named Zeev Suraski and Andi
Gutmans rewrote the parser that formed the base 
of PHP 3 and then changed the language's name to 
the PHP: Hypertext Preprocessor.  
9/11/2013
8
TOPS Technologies:http://www.tops-
int.com/php-training-course.html
HOW DO YOU CONNET MYSQL
DATABASE WITH PHP?
 Answer : We can connect Mysql Database with
PHP using both Procedural and Object oriented
style like below
$link = mysqli_connect("localhost",
"username", "password", "dbofpcds");
$mysqli = new mysqli("localhost", "username",
"password", "dbname");
and in old type of connectivity were
$link = mysql_connect("localhost", "username",
"password");
mysql_select_db("database",$link);
9/11/2013
9
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
IN HOW MANY WAYS WE CAN RETRIEVE THE DATA IN THE
RESULT SET OFMYSQL USING PHP? WHAT IS THE
DIFFERENCE BETWEEN MYSQL_FETCH_OBJECT AND
MYSQL_FETCH_ARRAY ?
 We can retrieve the data in the result set of MySQL using PHP in 4
Ways
1. mysqli_fetch_row >> Get a result row as an enumerated array
2. mysqli_fetch_array >> Fetch a result row as associative and
numeric array
3.mysqli_fetch_object >> Returns the current row of a result set as
an object
4. mysqli_fetch_assoc >> Fetch a result row as an associative
array
mysqli_fetch_object() is similar to mysqli_fetch_array(), with one
difference -
an object is returned, instead of an array. Indirectly, that means that
we can only access the data by the field names, and not by their
offsets (numbers are illegal property names).
9/11/2013
10
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
• How can we create a database using PHP and
MySQL?
• We can create MySQL database with the use of
mysql_create_db("Database Name") Questions :
9What are the differences between require and
include?Answers : 9Both include and require used to
include a file but when included file not found
Include send Warning where as Require send Fatal
Error .
• Can we use include ("xyz.PHP") two times in a PHP
page "index.PHP"?
Yes we can use include("xyz.php") more than one time
in any page. but it create a prob when xyz.php file
contain some funtions declaration then error will come
for already declared function in this file else not a prob
like if you want to show same content two time in page
then must incude it two time not a prob
9/11/2013
11
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT ARE THE DIFFERENCES
BETWEEN GET AND POST METHODS ?
• There are some defference between GET and
POST method
1. GET Method have some limit like only 2Kb data
able to send for request
But in POST method unlimited data can we send
2. when we use GET method requested data show
in url but
Not in POST method so POST method is good for
send sensetive request
9/11/2013
12
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT IS HTACCESS? WHY DO WE USE
THIS AND WHERE?
• htaccess files are configuration files of Apache
Server which provide
a way to make configuration changes on a per-
directory basis. A file,
containing one or more configuration directives, is
placed in a particular
document directory, and the directives apply to that
directory, and all
subdirectories thereof.
9/11/2013
13
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT ARE THE DIFFERENCES BETWEEN
PUBLIC, PRIVATE, PROTECTED,STATIC,
TRANSIENT, FINAL AND VOLATILE ?
 Public: Public declared items can be accessed everywhere.
Protected: Protected limits access to inherited and parent
classes (and to the class that defines the item).
Private: Private limits visibility only to the class that defines
the item.
Static: A static variable exists only in a local function scope,
but it does not lose its value when program execution leaves this
scope.
Final: Final keyword prevents child classes from overriding a
method by prefixing the definition with final. If the class itself is
being defined final then it cannot be extended.
transient: A transient variable is a variable that may not
be serialized.
volatile: a variable that might be concurrently modified by
multiple
threads should be declared volatile. Variables declared to be
volatile
will not be optimized by the compiler because their value can
change at
any time.
9/11/2013
14
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
WHAT ARE MAGIC METHODS?
 Magic methods are the members functions that is
available to all the instance of class Magic methods
always starts with "__". Eg. __construct All magic
methods needs to be declared as public To use
magic method they should be defined within the
class or program scope Various Magic Methods
used in PHP 5 are: __construct() __destruct()
__set() __get() __call() __toString() __sleep()
__wakeup() __isset() __unset() __autoload()
__clone()
9/11/2013
15
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
FOR MORE VISIT US AT YOUR
NEAREST CENTER.
• http://www.tops-int.com
• http://www.tops-int.com/php-training-course.html
9/11/2013
16
TOPSTechnologies:http://www.tops-
int.com/php-training-course.html
Ad

Recommended

100 PHP question and answer
100 PHP question and answer
Sandip Murari
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and Answers
Vineet Kumar Saini
 
Abstract Class and Interface in PHP
Abstract Class and Interface in PHP
Vineet Kumar Saini
 
1000+ php questions
1000+ php questions
Sandip Murari
 
Top 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
 
Php interview-questions and answers
Php interview-questions and answers
sheibansari
 
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Top 100-php-interview-questions-and-answers-are-below-120816023558-phpapp01
Tekblink Jeeten
 
Php interview questions
Php interview questions
sekar c
 
Php Interview Questions
Php Interview Questions
UmeshSingh159
 
25 php interview questions – codementor
25 php interview questions – codementor
Arc & Codementor
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
 
Advanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan Broerse
dpc
 
Phpbasics
Phpbasics
PrinceGuru MS
 
Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)
Ivo Jansch
 
PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018
AshokKumar3319
 
Presentation php
Presentation php
Muhammad Saqib Malik
 
Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Php tutorial
Php tutorial
Niit
 
Php
Php
Vineet Vats
 
Software Design
Software Design
mohamedsaad24
 
PHP Project PPT
PHP Project PPT
Pankil Agrawal
 
Php hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 
Php tutorial from_beginner_to_master
Php tutorial from_beginner_to_master
PrinceGuru MS
 
Php & mysql course syllabus
Php & mysql course syllabus
Papitha Velumani
 
Php unit i
Php unit i
prakashvs7
 
PHP Basics
PHP Basics
Roohul Amin
 
Php notes 01
Php notes 01
Aakaash Ngl
 
Web Techniques like Cookies and Sessions
Web Techniques like Cookies and Sessions
SonaliAbhang
 
Php
Php
Yesha kapadia
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATION
krutitrivedi
 

More Related Content

What's hot (19)

Php Interview Questions
Php Interview Questions
UmeshSingh159
 
25 php interview questions – codementor
25 php interview questions – codementor
Arc & Codementor
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
 
Advanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan Broerse
dpc
 
Phpbasics
Phpbasics
PrinceGuru MS
 
Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)
Ivo Jansch
 
PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018
AshokKumar3319
 
Presentation php
Presentation php
Muhammad Saqib Malik
 
Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Php tutorial
Php tutorial
Niit
 
Php
Php
Vineet Vats
 
Software Design
Software Design
mohamedsaad24
 
PHP Project PPT
PHP Project PPT
Pankil Agrawal
 
Php hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 
Php tutorial from_beginner_to_master
Php tutorial from_beginner_to_master
PrinceGuru MS
 
Php & mysql course syllabus
Php & mysql course syllabus
Papitha Velumani
 
Php unit i
Php unit i
prakashvs7
 
PHP Basics
PHP Basics
Roohul Amin
 
Php notes 01
Php notes 01
Aakaash Ngl
 
Php Interview Questions
Php Interview Questions
UmeshSingh159
 
25 php interview questions – codementor
25 php interview questions – codementor
Arc & Codementor
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
 
Advanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan Broerse
dpc
 
Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)
Ivo Jansch
 
PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018
AshokKumar3319
 
Php tutorial(w3schools)
Php tutorial(w3schools)
Arjun Shanka
 
Php tutorial
Php tutorial
Niit
 
Php hypertext pre-processor
Php hypertext pre-processor
Siddique Ibrahim
 
Php tutorial from_beginner_to_master
Php tutorial from_beginner_to_master
PrinceGuru MS
 
Php & mysql course syllabus
Php & mysql course syllabus
Papitha Velumani
 

Similar to GTU MCA PHP Interview Questions And Answers for freshers (20)

Web Techniques like Cookies and Sessions
Web Techniques like Cookies and Sessions
SonaliAbhang
 
Php
Php
Yesha kapadia
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATION
krutitrivedi
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Unit 4-6 sem 7 Web Technologies.pptx
Unit 4-6 sem 7 Web Technologies.pptx
prathameshp9922
 
PHP Hypertext Preprocessor
PHP Hypertext Preprocessor
adeel990
 
More about PHP
More about PHP
Jonathan Francis Roscoe
 
Php my sql programing - brochure
Php my sql programing - brochure
Zabeel Institute
 
DIPLOMA IN DESIGNING AND WEBSITE DEVELOPMENT
DIPLOMA IN DESIGNING AND WEBSITE DEVELOPMENT
Shri Prakash Pandey
 
Introduction to webprogramming using PHP and MySQL
Introduction to webprogramming using PHP and MySQL
anand raj
 
Php interview questions
Php interview questions
subash01
 
Php training in chandigarh
Php training in chandigarh
CBitss Technologies
 
Tech talk php_cms
Tech talk php_cms
Shehrevar Davierwala
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
 
Introduction to php
Introduction to php
KIRAN KUMAR SILIVERI
 
PHP Training: Module 1
PHP Training: Module 1
hussulinux
 
Php with mysql ppt
Php with mysql ppt
Rajamanickam Gomathijayam
 
Introduction to PHP - SDPHP
Introduction to PHP - SDPHP
Eric Johnson
 
php
php
bhuvana553
 
Chapter 1.Web Techniques_Notes.pptx
Chapter 1.Web Techniques_Notes.pptx
ShitalGhotekar
 
Web Techniques like Cookies and Sessions
Web Techniques like Cookies and Sessions
SonaliAbhang
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATION
krutitrivedi
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Unit 4-6 sem 7 Web Technologies.pptx
Unit 4-6 sem 7 Web Technologies.pptx
prathameshp9922
 
PHP Hypertext Preprocessor
PHP Hypertext Preprocessor
adeel990
 
Php my sql programing - brochure
Php my sql programing - brochure
Zabeel Institute
 
DIPLOMA IN DESIGNING AND WEBSITE DEVELOPMENT
DIPLOMA IN DESIGNING AND WEBSITE DEVELOPMENT
Shri Prakash Pandey
 
Introduction to webprogramming using PHP and MySQL
Introduction to webprogramming using PHP and MySQL
anand raj
 
Php interview questions
Php interview questions
subash01
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
 
PHP Training: Module 1
PHP Training: Module 1
hussulinux
 
Introduction to PHP - SDPHP
Introduction to PHP - SDPHP
Eric Johnson
 
Chapter 1.Web Techniques_Notes.pptx
Chapter 1.Web Techniques_Notes.pptx
ShitalGhotekar
 
Ad

More from TOPS Technologies (20)

Learn java objects inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphism
TOPS Technologies
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”
TOPS Technologies
 
Word press interview question and answer tops technologies
Word press interview question and answer tops technologies
TOPS Technologies
 
How to install android sdk
How to install android sdk
TOPS Technologies
 
Software testing and quality assurance
Software testing and quality assurance
TOPS Technologies
 
Basics in software testing
Basics in software testing
TOPS Technologies
 
Learn advanced java programming
Learn advanced java programming
TOPS Technologies
 
How to create android applications
How to create android applications
TOPS Technologies
 
What is ui element in i phone developmetn
What is ui element in i phone developmetn
TOPS Technologies
 
How to create android applications
How to create android applications
TOPS Technologies
 
Java live project training
Java live project training
TOPS Technologies
 
Software testing live project training
Software testing live project training
TOPS Technologies
 
Web designing live project training
Web designing live project training
TOPS Technologies
 
Php live project training
Php live project training
TOPS Technologies
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologies
TOPS Technologies
 
Php training in ahmedabad
Php training in ahmedabad
TOPS Technologies
 
Java training in ahmedabad
Java training in ahmedabad
TOPS Technologies
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone
TOPS Technologies
 
GTU PHP Project Training Guidelines
GTU PHP Project Training Guidelines
TOPS Technologies
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training Guidelines
TOPS Technologies
 
Learn java objects inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphism
TOPS Technologies
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”
TOPS Technologies
 
Word press interview question and answer tops technologies
Word press interview question and answer tops technologies
TOPS Technologies
 
Software testing and quality assurance
Software testing and quality assurance
TOPS Technologies
 
Learn advanced java programming
Learn advanced java programming
TOPS Technologies
 
How to create android applications
How to create android applications
TOPS Technologies
 
What is ui element in i phone developmetn
What is ui element in i phone developmetn
TOPS Technologies
 
How to create android applications
How to create android applications
TOPS Technologies
 
Software testing live project training
Software testing live project training
TOPS Technologies
 
Web designing live project training
Web designing live project training
TOPS Technologies
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologies
TOPS Technologies
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone
TOPS Technologies
 
GTU PHP Project Training Guidelines
GTU PHP Project Training Guidelines
TOPS Technologies
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training Guidelines
TOPS Technologies
 
Ad

Recently uploaded (20)

How Build a Personal Brand Legacy for Career Growth?
How Build a Personal Brand Legacy for Career Growth?
StrengthsTheatre
 
How to Write a Powerful Resume for Career Development?
How to Write a Powerful Resume for Career Development?
StrengthsTheatre
 
Introduction to Stack.pptx with stack info
Introduction to Stack.pptx with stack info
BhaveshKorane
 
一比一原版(SFSU毕业证)旧金山州立大学毕业证如何办理
一比一原版(SFSU毕业证)旧金山州立大学毕业证如何办理
taqyed
 
Gives a structured overview of the skills measured in the DP-700 exam
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
Meiteguhf
 
szza009 (1).pdfdsrgggsdggggggggggggggggggggggg
szza009 (1).pdfdsrgggsdggggggggggggggggggggggg
ath67927
 
ndss2024xxxxxxxxxxxxxxxxx_slides (1).ppsx
ndss2024xxxxxxxxxxxxxxxxx_slides (1).ppsx
rnkaushal2
 
Abdul salam Dar.pptDDKJHDJKHFKDSHFJKSHDKFHDKHFKJDKFJKDHFK
Abdul salam Dar.pptDDKJHDJKHFKDSHFJKSHDKFHDKHFKJDKFJKDHFK
vramsiya09
 
NCC_Enrollment_Visual_Presenatation.pptx
NCC_Enrollment_Visual_Presenatation.pptx
19sharmalalit
 
Yellow and Purple Doodle Startup Pitch Deck Presentation.pdf.pdf
Yellow and Purple Doodle Startup Pitch Deck Presentation.pdf.pdf
kharadeshreya2210
 
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
taqyed
 
PRESENTATION general mathematicsppt.pptx
PRESENTATION general mathematicsppt.pptx
DharylBallarta
 
Quarter 3 Program Implementation Review and Performance Assessment
Quarter 3 Program Implementation Review and Performance Assessment
LaMariaAngelicaPunay
 
PHYSICAL EDUCATION AND HEALTH POWERPOINT
PHYSICAL EDUCATION AND HEALTH POWERPOINT
aguilarena08
 
From reducing flood risks to conserving water
From reducing flood risks to conserving water
Ali Ata
 
Plant Evaluation and Historical Developments,PPT.pptx
Plant Evaluation and Historical Developments,PPT.pptx
7300511143
 
Biography and career history of Dr. Gabriel Carabello
Biography and career history of Dr. Gabriel Carabello
Dr. Gabriel Carabello
 
Gives a structured overview of the skills measured in the DP-700 exam
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
CCNA Training in Chandigarh: Launch Your Career in Networking Today
CCNA Training in Chandigarh: Launch Your Career in Networking Today
nitish1240728
 
How Build a Personal Brand Legacy for Career Growth?
How Build a Personal Brand Legacy for Career Growth?
StrengthsTheatre
 
How to Write a Powerful Resume for Career Development?
How to Write a Powerful Resume for Career Development?
StrengthsTheatre
 
Introduction to Stack.pptx with stack info
Introduction to Stack.pptx with stack info
BhaveshKorane
 
一比一原版(SFSU毕业证)旧金山州立大学毕业证如何办理
一比一原版(SFSU毕业证)旧金山州立大学毕业证如何办理
taqyed
 
Gives a structured overview of the skills measured in the DP-700 exam
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
AKnosiahsfnlkasndlakwfbklasndlakbwlfkslgab
Meiteguhf
 
szza009 (1).pdfdsrgggsdggggggggggggggggggggggg
szza009 (1).pdfdsrgggsdggggggggggggggggggggggg
ath67927
 
ndss2024xxxxxxxxxxxxxxxxx_slides (1).ppsx
ndss2024xxxxxxxxxxxxxxxxx_slides (1).ppsx
rnkaushal2
 
Abdul salam Dar.pptDDKJHDJKHFKDSHFJKSHDKFHDKHFKJDKFJKDHFK
Abdul salam Dar.pptDDKJHDJKHFKDSHFJKSHDKFHDKHFKJDKFJKDHFK
vramsiya09
 
NCC_Enrollment_Visual_Presenatation.pptx
NCC_Enrollment_Visual_Presenatation.pptx
19sharmalalit
 
Yellow and Purple Doodle Startup Pitch Deck Presentation.pdf.pdf
Yellow and Purple Doodle Startup Pitch Deck Presentation.pdf.pdf
kharadeshreya2210
 
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
一比一原版(UTS毕业证)悉尼科技大学毕业证如何办理
taqyed
 
PRESENTATION general mathematicsppt.pptx
PRESENTATION general mathematicsppt.pptx
DharylBallarta
 
Quarter 3 Program Implementation Review and Performance Assessment
Quarter 3 Program Implementation Review and Performance Assessment
LaMariaAngelicaPunay
 
PHYSICAL EDUCATION AND HEALTH POWERPOINT
PHYSICAL EDUCATION AND HEALTH POWERPOINT
aguilarena08
 
From reducing flood risks to conserving water
From reducing flood risks to conserving water
Ali Ata
 
Plant Evaluation and Historical Developments,PPT.pptx
Plant Evaluation and Historical Developments,PPT.pptx
7300511143
 
Biography and career history of Dr. Gabriel Carabello
Biography and career history of Dr. Gabriel Carabello
Dr. Gabriel Carabello
 
Gives a structured overview of the skills measured in the DP-700 exam
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
CCNA Training in Chandigarh: Launch Your Career in Networking Today
CCNA Training in Chandigarh: Launch Your Career in Networking Today
nitish1240728
 

GTU MCA PHP Interview Questions And Answers for freshers

  • 2. GTU MCA INTERVIEW QUESTIONS & ANSWERS FOR PHP By TOPS Technologies http://www.tops-int.com/php-training-course.html 9/11/2013 2 TOPSTechnologies:http://www.tops-int.com/php- training-course.html
  • 3. GTU MCA INTERVIEW QUESTIONS & ANSWERS FOR PHP More then 2000 PHP interview questions and answers on Basic and advance PHP for both freshers and experienced candidate of 1 to 6 year as It covered file system, PHP email, string functions, header functions, pear classes and library, regular expression , array sorting, PHP date format, CURL, PayPal Integration, Shopping cart, PHP Memcache and php framework like zend framework symphony, CodeIgniter cake , YII frameworks etc means all type of PHP questions are going to be coveredin future. Here is a small initialization for our PHP students to prepare for their first industrial interview. -By TOPS Technologies. 9/11/2013 3 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 4. WHAT IS THE DIFFERENCE BETWEEN A STATIC AND DYNAMIC WEB SITE?  A static website is one that is written in HTML only. Each page is a separate document and there is no database that it draws on. What this means functionally is that the only way to edit the site is to go into each page and edit the HTML - So you would have to do it yourself using a web page editor such as FrontPage or Dreamweaver, or pay your web developer to make updates for you. A dynamic website is created by webdevelopers who are strong in ASP.Net, PHP, JAVA and more... This website pages contains data is retrieved from certain database. Each time the viewer entering a page, the contents of that page is retrieved from the database. The administrator can change the content and images from admin panel. This is one that changes or customizes itself frequently and automatically. 9/11/2013 4 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 5. WHAT IS THE MEANING OF OPEN SOURCE SOFTWARE?  Open-Source Software (OSS) is computer  software that is available in source code form: the  source code and certain other rights normally  reserved for copyright holders are provided under a  software license that permits users to study,  change, improve and at times also to distribute the  software.Open Source Software means it is a free  software and no need to buy, we can use full  functionallities from this software with certain Terms  & Conditions. This license allows modifications and  derived works, and allows us to be distributed under  the same terms as the license of the original  software. 9/11/2013 5 TOPS Technologies:http://www.tops- int.com/php-training-course.html
  • 6. WHY WAS PHP DEVELOPED, WHAT IT IS USED FOR, AND WHERE CAN YOU GET IT?  PHP developed for less script, time saving, Free Open Source  Software and runs on different platforms such as Windows,  Linux, Unix, etc. PHP compatible with almost all servers used  today such as Apache, IIS, etc. The PHP scripting language resembles JavaScript, Java, and  Perl, These languages all share a common ancestor, the C  programming language. PHP has full access to the  information that the server has, and very little access to  information that the client has. In fact, it only has information  that the client tells the server and that the server passes on to  PHP. Because it is on the server, however, PHP cannot be  modified by the client. While you cannot necessarily trust the  information that the client gives to PHP, you can trust that your  PHP is doing what you told it to do. Because PHP is on the  server end, your PHP scripts can affect your server -- such as  by keeping an activity log or updating a database. 9/11/2013 6 TOPS Technologies:http://www.tops- int.com/php-training-course.html
  • 7. WHAT ARE THE BENEFITS OF USING PHP AND MYSQL?  One of the main reasons that businesses choose PHP is its simplicity and  ease of use. PHP competes against a number of other web scripting solutions  such as Active Server Pages and PERL, but none of these languages are as  easy to learn as PHP. Further, some languages require a moderate amount of  programming background before a developer can get up to speed in  development. With PHP, however, even non-programmers have been able to  develop web-based solutions within a matter of days after going through the  basic tutorials on PHP. PHP commands are simply embedded into the same  web page with HTML commands, and execute on the server to deliver the  web pages to the user. Another big advantage of PHP is its interoperability with multiple operating  systems. A company can use PHP with either Linux, Windows or Macs for  example. They can also use PHP with the popular open source Apache  server. Compare that with Microsoft’s Active Server Pages, by contrast, which  is primarily designed for Microsoft-enabled servers. Portability is becoming a  chief concern for businesses that use one or more operating systems in their  businesses. Businesses save money by using PHP to leverage their existing  I.S. resources rather than investing large sums of money to purchase  proprietary products. 9/11/2013 7 TOPS Technologies:http://www.tops- int.com/php-training-course.html
  • 8. WHAT IS FULL FORM OF PHP ? WHO IS THE FATHER OR INVENTOR OF PHP ?  Answers : 1Rasmus Lerdorf is known as the  father of PHP that started development of PHP in  1994 for their own Personal Home Page (PHP) and they  released PHP/FI (Forms Interpreter) version 1.0  publicly on 8 June 1995 But in 1997 two Israeli  developers named Zeev Suraski and Andi Gutmans rewrote the parser that formed the base  of PHP 3 and then changed the language's name to  the PHP: Hypertext Preprocessor.   9/11/2013 8 TOPS Technologies:http://www.tops- int.com/php-training-course.html
  • 9. HOW DO YOU CONNET MYSQL DATABASE WITH PHP?  Answer : We can connect Mysql Database with PHP using both Procedural and Object oriented style like below $link = mysqli_connect("localhost", "username", "password", "dbofpcds"); $mysqli = new mysqli("localhost", "username", "password", "dbname"); and in old type of connectivity were $link = mysql_connect("localhost", "username", "password"); mysql_select_db("database",$link); 9/11/2013 9 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 10. IN HOW MANY WAYS WE CAN RETRIEVE THE DATA IN THE RESULT SET OFMYSQL USING PHP? WHAT IS THE DIFFERENCE BETWEEN MYSQL_FETCH_OBJECT AND MYSQL_FETCH_ARRAY ?  We can retrieve the data in the result set of MySQL using PHP in 4 Ways 1. mysqli_fetch_row >> Get a result row as an enumerated array 2. mysqli_fetch_array >> Fetch a result row as associative and numeric array 3.mysqli_fetch_object >> Returns the current row of a result set as an object 4. mysqli_fetch_assoc >> Fetch a result row as an associative array mysqli_fetch_object() is similar to mysqli_fetch_array(), with one difference - an object is returned, instead of an array. Indirectly, that means that we can only access the data by the field names, and not by their offsets (numbers are illegal property names). 9/11/2013 10 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 11. • How can we create a database using PHP and MySQL? • We can create MySQL database with the use of mysql_create_db("Database Name") Questions : 9What are the differences between require and include?Answers : 9Both include and require used to include a file but when included file not found Include send Warning where as Require send Fatal Error . • Can we use include ("xyz.PHP") two times in a PHP page "index.PHP"? Yes we can use include("xyz.php") more than one time in any page. but it create a prob when xyz.php file contain some funtions declaration then error will come for already declared function in this file else not a prob like if you want to show same content two time in page then must incude it two time not a prob 9/11/2013 11 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 12. WHAT ARE THE DIFFERENCES BETWEEN GET AND POST METHODS ? • There are some defference between GET and POST method 1. GET Method have some limit like only 2Kb data able to send for request But in POST method unlimited data can we send 2. when we use GET method requested data show in url but Not in POST method so POST method is good for send sensetive request 9/11/2013 12 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 13. WHAT IS HTACCESS? WHY DO WE USE THIS AND WHERE? • htaccess files are configuration files of Apache Server which provide a way to make configuration changes on a per- directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof. 9/11/2013 13 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 14. WHAT ARE THE DIFFERENCES BETWEEN PUBLIC, PRIVATE, PROTECTED,STATIC, TRANSIENT, FINAL AND VOLATILE ?  Public: Public declared items can be accessed everywhere. Protected: Protected limits access to inherited and parent classes (and to the class that defines the item). Private: Private limits visibility only to the class that defines the item. Static: A static variable exists only in a local function scope, but it does not lose its value when program execution leaves this scope. Final: Final keyword prevents child classes from overriding a method by prefixing the definition with final. If the class itself is being defined final then it cannot be extended. transient: A transient variable is a variable that may not be serialized. volatile: a variable that might be concurrently modified by multiple threads should be declared volatile. Variables declared to be volatile will not be optimized by the compiler because their value can change at any time. 9/11/2013 14 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 15. WHAT ARE MAGIC METHODS?  Magic methods are the members functions that is available to all the instance of class Magic methods always starts with "__". Eg. __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone() 9/11/2013 15 TOPSTechnologies:http://www.tops- int.com/php-training-course.html
  • 16. FOR MORE VISIT US AT YOUR NEAREST CENTER. • http://www.tops-int.com • http://www.tops-int.com/php-training-course.html 9/11/2013 16 TOPSTechnologies:http://www.tops- int.com/php-training-course.html