Question

PHP how a database query compares the submitted information against the stored information. Discuss why sessions...

PHP

how a database query compares the submitted information against the stored information.

Discuss why sessions are generally more secure than cookies and can store much more information.

Discuss the merits of using object-oriented programming (OOP) with the PHP. Also, compare the benefits of using OOP over procedural programming.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

How a database query compares the submitted information against the stored information

  • When the server receives the query , there are number of steps are taking place.
  • The query processing starts with parsing the query.
  • Then it will optimize the query based on several optimization methods.
  • There is a query execution plan, which tells how to execute a query.
  • Then next two stages are logical and physical processing stages.
  • In logical processing stage, the order of processing of different clauses in the query is determined.
  • The physical processing stage includes query compilation which include the generation of execution plan.
  • After completing all these steps, query is executed according to the plan and we get the result back.

Why sessions are generally more secure than cookies and can store much more information :

  • Sessions are more secure than cookies , because sessions are stored in server.
  • A Session is associated with every user.
  • Cookies are stored in the machine of client.
  • Cookies are sent to server based on the request.
  • Sessions cannot be modified easily, because they are on server.
  • Cookies can be easily modified, which is too risky.
  • Cookies can be used to identify sessions.

Merits of using object-oriented programming (OOP) with the PHP :

  • The merits of using object oriented concepts in PHP is code re-usability, encapsulation, polymorphism, inheritance etc..
  • Encapsulation means hiding the inner details by binding data and function together.
  • Polymorphism means ability to exist in different forms.
  • Inheritance is the process by which a class inherits the properties of other class.
  • Object oriented concept is mainly useful in constructing real world applications.

Benefits of using OOP over procedural programming :

  • Easy to develop a real world application.
  • Reusability of code.
  • Data can be protected by specify access criteria such as public, private, protected etc..
  • Same operator or function can be given different meanings , means polymorphism.
Add a comment
Know the answer?
Add Answer to:
PHP how a database query compares the submitted information against the stored information. Discuss why sessions...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Rationale The focus of the project is to develop your database programming skills. This project will...

    Rationale The focus of the project is to develop your database programming skills. This project will help you get a fair idea of the sales and distribution system in any organization that has a chain of Carrying and Forwarding Agents (CFAs) or super stockists and stockists. You will be able to implement database programming concepts of ADO.NET in VB.NET and ASP.NET to create a real-life, web-based database application. (VB stands for Visual Basic.) Scenario Smooth Pen, Inc., a pen manufacturing...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT