Question: For this assignment, you will create and run a PHP web application using object-oriented development techniques. This will be a simple introduction to Object-Oriented PHP

For this assignment, you will create and run a PHP web application using object-oriented development techniques. This will be a simple introduction to Object-Oriented PHP (OOPHP) that we will build on throughout the rest of the course.

The purpose of this exercise is to:

  • Write code to add properties to objects
  • Write code to add methods to objects

Instructions

Use the written instructions and the code screenshots below to create and run a web application using Visual Studio Code (VS Code). You will be submitting screenshots of the following as your submission:

  • The final index.php file loaded in VS Code (all lines of code shown)
  • The final display_name.php file loaded in VS Code (all lines of code shown)
  • The application running in a browser

Part 1: Create the Application Space and Add a Class

  • Create an empty folder for your application in the XAMPP htdocs folder named "cis367_wk2_gp1"
  • Add a file named "display_name.php" to the folder and add the code from the screenshot below to the file

Part 2: Add the User Interface and Use the Class

  • Add an "index.php" file to the folder and add the code from the screenshot below to the file
  • Add a Run Configuration to allow the application to be run from inside VS Code
  • Run the application

Take screenshots of:

  • The final index.php file loaded in VS Code (all lines of code shown)
  • The final display_name.php file loaded in VS Code (all lines of code shown)
  • The application running in a browser

Submit the screenshots in a single Word document per the submission instructions below.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!