SlideShare una empresa de Scribd logo
1 de 16
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

Más contenido relacionado

La actualidad más candente

Php Interview Questions
Php Interview QuestionsPhp Interview Questions
Php Interview QuestionsUmeshSingh159
 
25 php interview questions – codementor
25 php interview questions – codementor25 php interview questions – codementor
25 php interview questions – codementorArc & Codementor
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015iScripts
 
Advanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan BroerseAdvanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan Broersedpc
 
Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)Ivo Jansch
 
PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018AshokKumar3319
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)Arjun Shanka
 
Php tutorial
Php tutorialPhp tutorial
Php tutorialNiit
 
Software Design
Software DesignSoftware Design
Software DesignSpy Seat
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processorSiddique Ibrahim
 
Php tutorial from_beginner_to_master
Php tutorial from_beginner_to_masterPhp tutorial from_beginner_to_master
Php tutorial from_beginner_to_masterPrinceGuru MS
 
Php & mysql course syllabus
Php & mysql course syllabusPhp & mysql course syllabus
Php & mysql course syllabusPapitha Velumani
 

La actualidad más candente (19)

Php Interview Questions
Php Interview QuestionsPhp Interview Questions
Php Interview Questions
 
25 php interview questions – codementor
25 php interview questions – codementor25 php interview questions – codementor
25 php interview questions – codementor
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
 
Advanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan BroerseAdvanced PHP: Design Patterns - Dennis-Jan Broerse
Advanced PHP: Design Patterns - Dennis-Jan Broerse
 
Phpbasics
PhpbasicsPhpbasics
Phpbasics
 
Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)Enterprise PHP (php|works 2008)
Enterprise PHP (php|works 2008)
 
PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018PHP Interview Questions for Freshers 2018
PHP Interview Questions for Freshers 2018
 
Presentation php
Presentation phpPresentation php
Presentation php
 
Php tutorial(w3schools)
Php tutorial(w3schools)Php tutorial(w3schools)
Php tutorial(w3schools)
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Php
PhpPhp
Php
 
Software Design
Software DesignSoftware Design
Software Design
 
PHP Project PPT
PHP Project PPTPHP Project PPT
PHP Project PPT
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
Php tutorial from_beginner_to_master
Php tutorial from_beginner_to_masterPhp tutorial from_beginner_to_master
Php tutorial from_beginner_to_master
 
Php & mysql course syllabus
Php & mysql course syllabusPhp & mysql course syllabus
Php & mysql course syllabus
 
Php unit i
Php unit i Php unit i
Php unit i
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
Php notes 01
Php notes 01Php notes 01
Php notes 01
 

Similar a GTU MCA PHP Interview Questions And Answers for freshers

CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMANAND PRAKASH
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPPHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPLariya Minhaz
 
chapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdfchapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdfburasyacob012
 
The Guide to becoming a full stack developer in 2018
The Guide to becoming a full stack developer in 2018The Guide to becoming a full stack developer in 2018
The Guide to becoming a full stack developer in 2018Amit Ashwini
 
Website development courses
Website development coursesWebsite development courses
Website development coursesOSK IT SOLUTION
 
PHP vs .NET vs JAVA : The Right Tech for Your Next Big Project
PHP vs .NET vs JAVA : The Right Tech for Your Next Big ProjectPHP vs .NET vs JAVA : The Right Tech for Your Next Big Project
PHP vs .NET vs JAVA : The Right Tech for Your Next Big ProjectRosalie Lauren
 
2013 - Dustin whittle - Escalando PHP en la vida real
2013 - Dustin whittle - Escalando PHP en la vida real2013 - Dustin whittle - Escalando PHP en la vida real
2013 - Dustin whittle - Escalando PHP en la vida realPHP Conference Argentina
 
Online Fitness Gym Documentation
Online Fitness Gym Documentation Online Fitness Gym Documentation
Online Fitness Gym Documentation Abhishek Patel
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!Evan Mullins
 
Learn How To Develop With CakePHP
Learn How To Develop With CakePHPLearn How To Develop With CakePHP
Learn How To Develop With CakePHPMichael Bourque
 
Introduction to PHP OOP
Introduction to PHP OOPIntroduction to PHP OOP
Introduction to PHP OOPfakhrul hasan
 
Introduction to Google App Engine with Python
Introduction to Google App Engine with PythonIntroduction to Google App Engine with Python
Introduction to Google App Engine with PythonBrian Lyttle
 
Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7Ryan Szrama
 

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

Unit 1
Unit 1Unit 1
Unit 1
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPPHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHP
 
File handling
File handlingFile handling
File handling
 
chapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdfchapter 5 Server-Side Scripting (PHP).pdf
chapter 5 Server-Side Scripting (PHP).pdf
 
The Guide to becoming a full stack developer in 2018
The Guide to becoming a full stack developer in 2018The Guide to becoming a full stack developer in 2018
The Guide to becoming a full stack developer in 2018
 
Php
PhpPhp
Php
 
cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)
 
Website development courses
Website development coursesWebsite development courses
Website development courses
 
Report.docx
Report.docxReport.docx
Report.docx
 
PHP vs .NET vs JAVA : The Right Tech for Your Next Big Project
PHP vs .NET vs JAVA : The Right Tech for Your Next Big ProjectPHP vs .NET vs JAVA : The Right Tech for Your Next Big Project
PHP vs .NET vs JAVA : The Right Tech for Your Next Big Project
 
Flyr PHP micro-framework
Flyr PHP micro-frameworkFlyr PHP micro-framework
Flyr PHP micro-framework
 
2013 - Dustin whittle - Escalando PHP en la vida real
2013 - Dustin whittle - Escalando PHP en la vida real2013 - Dustin whittle - Escalando PHP en la vida real
2013 - Dustin whittle - Escalando PHP en la vida real
 
Online Fitness Gym Documentation
Online Fitness Gym Documentation Online Fitness Gym Documentation
Online Fitness Gym Documentation
 
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!
 
PHP Training In Chandigarh
PHP Training In ChandigarhPHP Training In Chandigarh
PHP Training In Chandigarh
 
Learn How To Develop With CakePHP
Learn How To Develop With CakePHPLearn How To Develop With CakePHP
Learn How To Develop With CakePHP
 
Introduction to PHP OOP
Introduction to PHP OOPIntroduction to PHP OOP
Introduction to PHP OOP
 
Introduction to Google App Engine with Python
Introduction to Google App Engine with PythonIntroduction to Google App Engine with Python
Introduction to Google App Engine with Python
 
Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7
 

Más de TOPS Technologies

Learn java objects inheritance-overriding-polymorphism
Learn java objects  inheritance-overriding-polymorphismLearn java objects  inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphismTOPS Technologies
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted  one hour seminar on “corporate basic skills”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 technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologiesTOPS Technologies
 
Software testing and quality assurance
Software testing and quality assuranceSoftware testing and quality assurance
Software testing and quality assuranceTOPS Technologies
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programmingTOPS Technologies
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetnTOPS Technologies
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Software testing live project training
Software testing live project trainingSoftware testing live project training
Software testing live project trainingTOPS Technologies
 
Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project trainingTOPS Technologies
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesiPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesTOPS 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 phone08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phoneTOPS Technologies
 
GTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesGTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesTOPS Technologies
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesGTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesTOPS Technologies
 

Más de TOPS Technologies (20)

Learn java objects inheritance-overriding-polymorphism
Learn java objects  inheritance-overriding-polymorphismLearn java objects  inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphism
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted  one hour seminar on “corporate basic skills”Surat tops conducted  one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologies
 
How to install android sdk
How to install android sdkHow to install android sdk
How to install android sdk
 
Software testing and quality assurance
Software testing and quality assuranceSoftware testing and quality assurance
Software testing and quality assurance
 
Basics in software testing
Basics in software testingBasics in software testing
Basics in software testing
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programming
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetn
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Java live project training
Java live project trainingJava live project training
Java live project training
 
Software testing live project training
Software testing live project trainingSoftware testing live project training
Software testing live project training
 
Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project training
 
Php live project training
Php live project trainingPhp live project training
Php live project training
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesiPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologies
 
Php training in ahmedabad
Php training in ahmedabadPhp training in ahmedabad
Php training in ahmedabad
 
Java training in ahmedabad
Java training in ahmedabadJava training in ahmedabad
Java training in ahmedabad
 
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 phone08 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
 
GTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesGTU PHP Project Training Guidelines
GTU PHP Project Training Guidelines
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesGTU Asp.net Project Training Guidelines
GTU Asp.net Project Training Guidelines
 

Último

Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...poojakaurpk09
 
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service Bhiwandi
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service BhiwandiVIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service Bhiwandi
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service BhiwandiSuhani Kapoor
 
VIP Kolkata Call Girl Lake Gardens 👉 8250192130 Available With Room
VIP Kolkata Call Girl Lake Gardens 👉 8250192130  Available With RoomVIP Kolkata Call Girl Lake Gardens 👉 8250192130  Available With Room
VIP Kolkata Call Girl Lake Gardens 👉 8250192130 Available With Roomdivyansh0kumar0
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...Call Girls in Nagpur High Profile
 
Résumé (2 pager - 12 ft standard syntax)
Résumé (2 pager -  12 ft standard syntax)Résumé (2 pager -  12 ft standard syntax)
Résumé (2 pager - 12 ft standard syntax)Soham Mondal
 
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Suhani Kapoor
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Datingkojalkojal131
 
Internshala Student Partner 6.0 Jadavpur University Certificate
Internshala Student Partner 6.0 Jadavpur University CertificateInternshala Student Partner 6.0 Jadavpur University Certificate
Internshala Student Partner 6.0 Jadavpur University CertificateSoham Mondal
 
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...shivangimorya083
 
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackLow Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackSuhani Kapoor
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxGry Tina Tinde
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...shivangimorya083
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfSoham Mondal
 
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsSonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsNiya Khan
 
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackVIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackSuhani Kapoor
 
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call GirlsDelhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girlsshivangimorya083
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjLewisJB
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证obuhobo
 

Último (20)

Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
 
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service Bhiwandi
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service BhiwandiVIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service Bhiwandi
VIP Call Girl Bhiwandi Aashi 8250192130 Independent Escort Service Bhiwandi
 
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
VIP Kolkata Call Girl Lake Gardens 👉 8250192130 Available With Room
VIP Kolkata Call Girl Lake Gardens 👉 8250192130  Available With RoomVIP Kolkata Call Girl Lake Gardens 👉 8250192130  Available With Room
VIP Kolkata Call Girl Lake Gardens 👉 8250192130 Available With Room
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
 
Résumé (2 pager - 12 ft standard syntax)
Résumé (2 pager -  12 ft standard syntax)Résumé (2 pager -  12 ft standard syntax)
Résumé (2 pager - 12 ft standard syntax)
 
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
Low Rate Call Girls Gorakhpur Anika 8250192130 Independent Escort Service Gor...
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
Internshala Student Partner 6.0 Jadavpur University Certificate
Internshala Student Partner 6.0 Jadavpur University CertificateInternshala Student Partner 6.0 Jadavpur University Certificate
Internshala Student Partner 6.0 Jadavpur University Certificate
 
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
 
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service CuttackLow Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
Low Rate Call Girls Cuttack Anika 8250192130 Independent Escort Service Cuttack
 
Preventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptxPreventing and ending sexual harassment in the workplace.pptx
Preventing and ending sexual harassment in the workplace.pptx
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
 
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call GirlsSonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
Sonam +91-9537192988-Mind-blowing skills and techniques of Ahmedabad Call Girls
 
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service CuttackVIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
VIP Call Girls in Cuttack Aarohi 8250192130 Independent Escort Service Cuttack
 
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call GirlsDelhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
Delhi Call Girls In Atta Market 9711199012 Book Your One night Stand Call Girls
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbj
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
 

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