Ask PHP Expert

Advanced Internet Information Processing

1. This problem is pertaining to the HTML language. You can create your own web page by placing an HTML page in the “public html” directory within your home directory of your Linux account.

(1) Write an HTML ?le that contains all needed basic component of an HTML page and test it;

(2) Change the previous HTML ?le so that it contains some syntax errors and load the changed ?le to see if there is any displayed di?erence.

(3) Write a HTML ?le that uses both tables and frames. You may also use other HTML elements if necessary. Brie?y describe the functionalities and purposes of the ?le you write.

2. Assume that the input is of the format:

name1 = value1&name2 = value2& · · · namen = valuen

Some of the valuei could be empty, i.e. it is possible to have

namei = &namei+1 = valuei+1

Write a Perl script that extracts all namei and valuei pairs, and print them out like:

name1 is value1

name2 is value2

· · ·

namen is valuen

 

A ?le of student grade information has the following format:

Humphries, Tired L    TH25769       [email protected]      student

Nadash, Maly L M       NM1253         [email protected]      student

Kumar, Anihara Sim    AK2775          [email protected]      student

Curry, Sunny               SC2062         [email protected]      student

The value of the ?rst column is the last name, followed by the comma sign ’,’, followed by middle and initial of the student. Please note that the ”blank” spaces between the words, numbers, email addresses and so on may be white space character, or may be a tab character. Please also note that the number of ?elds in the ?rst name and middle initial names is a variable. It can be any where from one and up.

(1) Write a Perl script that takes an input ?le of the above format, and correctly do the following:

a. Construct and print out a ”username” based on the last name/?rst name/middle initial of each student, like this:

Humphries_Tired_L

Nadash_Maly_L_M

b. Extract the email address of each student.

(2) Do the same with a PHP script.

PHP , Programming

  • Category:- PHP
  • Reference No.:- M9217950

Have any Question?


Related Questions in PHP

Question continue to build on the skills of providing web

Question: Continue to build on the skills of providing Web page content and structure with HTML and Web page style and layout using CSS. Demonstrate the skill of creating a dynamic Web page that includes JavaScript clien ...

Question develop a 5-6 page word document that describes

Question: Develop a 5-6 page Word document that describes the design for a small Web site that meets the following specifications. 1. The Web site includes four or more Web pages designed according to current usability g ...

Question using the course software and week one template as

Question: Using the course software and Week One Template as a starting point, create a new HTML webpage and include the following: • Write the code to display your name in the largest-size heading element. • Write the m ...

In php write a simple addtion calculator that reads in two

In PHP write a simple addtion calculator that reads in two values and then add them together and display the output. Be sure to validate both inputs and ensure that it can add 0+0 = Sum: 0. The user should be able to inp ...

Final project assignment -requirements specifications -1

FINAL PROJECT ASSIGNMENT - REQUIREMENTS / SPECIFICATIONS - 1. For the final project, you will have to make good use of your CMS using PHP and MySQL for the content delivery. You will have to be able to deliver the conten ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As