Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions