Question: Create a new PHP document (Unit Objective 1) Write a comment similar to the following: This is my first PHP document, which displays some data

Create a new PHP document (Unit Objective 1)

Write a comment similar to the following: "This is my first PHP document, which displays some data in the web browser"(Unit Objective 1)

Assign your name as a string value into the variable labeled myName (Unit Objective 2)

Assign 53870 numeric value into the variable named randomNumber (Unit Objective 2)

Assign the name of the web browser and operating system of the user accessing the file into the variable named userAgent (Unit Objective 2)

Assign the file name of the currently running script into the variable named fileName (Unit Objective 3)

Assign the IP address from which the user is viewing the current page into the variable named ipAddress (Unit Objective 3)

Use echo command in order to display some informative descriptions followed by the values of myNem, randomNumber, userAgent, fileName, and ipAddress variables in the web browser. Each informative description and the value pair whould be displayed on a separate line (Unit Objective 4)

Save the file as myFirstPHP.php

Create a folder within the public_html folder in your account in people.ysu.edu, name this folder as "e_commerce".

Create another folder within the "e_commerce" folder you just created, and name this folder as "Assignment_1", and upload "myFirstPHP.php" file into the "Assignment_1" folder.

Attach "myFirstPHP.php" file to your response to this assignment, and submit it.

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!