This is a server-side scripting   This is intended to be a simple assignment to ensure that you all can: • read the documentation at php.net and call a function using the information found in that documentation • process information submitted to your script via an HTTP request and incorporate it into an expression Objectives • Familiarize Yourself with documentation from php.net • Use mathematical operators in PHP • Handle form input from a form you did not write Directions In your private directory, create a subdirectory called module02assign02c In the subdirectory module02assign02c create a file called index.php   For the main content, you are to output four different things, but only two that are nontrivial: 0.1. Opening. Within your file, first output some HTML, CSS, and explanatory text that sets the stage for the main content. 0.2. Date. Call the date function and you are to have it output the following: • the full name for the day of the week • a comma • a space • the full name for the month of the year • a space • the day of the month without leading zeros • the ordinal for the day of the month (st, nd, rd, th, etc...) • a comma • a space • the year with all four digits • a comma • a space • the hour of the day (12 hour format) without leading zeros • a space • AM or PM, capitalized Note that you can do all this with a single call to date with the appropriate format string as the argument to it. Note that this is all for the current date/time.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

                                 This is a server-side scripting

 

This is intended to be a simple assignment to ensure that you all can:

• read the documentation at php.net and call a function using the information found in that documentation

• process information submitted to your script via an HTTP request and incorporate it into an expression Objectives

• Familiarize Yourself with documentation from php.net

• Use mathematical operators in PHP

• Handle form input from a form you did not write Directions In your private directory, create a subdirectory called module02assign02c In the subdirectory module02assign02c create a file called index.php

 

For the main content, you are to output four different things, but only two that are nontrivial: 0.1. Opening. Within your file, first output some HTML, CSS, and explanatory text that sets the stage for the main content. 0.2. Date.

Call the date function and you are to have it output the following:

• the full name for the day of the week

• a comma

• a space

• the full name for the month of the year

• a space

• the day of the month without leading zeros

• the ordinal for the day of the month (st, nd, rd, th, etc...)

• a comma

• a space

• the year with all four digits

• a comma

• a space

• the hour of the day (12 hour format) without leading zeros

• a space

• AM or PM, capitalized

Note that you can do all this with a single call to date with the appropriate format string as the argument to it. Note that this is all for the current date/time.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education