Create the folders and files that appear in the file layout

Assignment Help PHP Web Programming
Reference no: EM131097890

Create the folders and files that appear in the attached file layout.

It is very important that you use the naming conventions and file organization noted here, as future assignments will depend on these files being in place.

The remainder of the instructions for this Assignment will take place in the "funrun1" folder.

Instructions - config.php

In your "_includes" at the root level of your "funrun1" folder, create a config.php file.

In your config.php, do the following:

• Declare a PHP constant named ABSOLUTE_PATH that contains the complete path to the "funrun1" folder on the server.
• Declare a PHP constant named URL_ROOT that contains the complete web address to the "funrun1" application you are developing on the web server.

Instructions - Create Other Includes & Home Page

Inside your "_includes" folder, create the following files:

• header.inc.php
• main_nav.inc.php
• footer.php

Create the index.php at the root level of the website (immediately inside your "funrun1" folder.)

In your index.php, use the PHP include statement to include ALL of the following:

• config.php(use a relative path when including this.)
• header.inc.php(you must reference ABSOLUTE_PATH)
• main_nav.inc.php(you must reference ABSOLUTE_PATH)
• footer.php(you must reference ABSOLUTE_PATH)

Use the attached paper prototype as a guide to produce the content of those files.

The CSS file at the root level of the site should be referenced in your header.inc.php file. Remember! When linking to CSS files, you MUST reference the URL_ROOT constant in your code.

Test! At this point you should be able to view your index.php file on the server and it should have all of the included files in place.

YOU SHOULD GET THIS PART WORKING BEFORE MOVING ON.

Instructions - CSS

Define at least two styles in your CSS file. These styles are completely up to you. You can change the body font, or create a header class, or format something in the footer. YOUR CHOICE.

The point is just to demonstrate that you have correctly included the CSS file using the URL_ROOT constant.

Test! At this point you should be able to view your index.php file on the server and see the effect of your defined styles.

YOU SHOULD GET THIS PART WORKING BEFORE MOVING ON.

Instructions - Create Other Files

Using your FULLY FUNCTIONING index.php as a guide, create the other files required for your website (refer to the attached file layout.)

• about/index.php
• runs/index.php
• contact/index.php

Each of these files should include your standard header, main navigation, and footer.

Use filler text for the content of each page, but please put a title at the top of each. Remember! Your CSS styles should be applied to ALL pages of your site.

Once those files are created, update your main_nav.inc.php file so that all of the files are correctly linked together.

Attachment:- Page_and_File_Layout.rar

Reference no: EM131097890

Questions Cloud

Original amount of the mortgage loan : A mortgage loan is repaid with annual installment payments payable at the end of each year for 30 years. Each subsequent payment is 2% higher than the previous one. The interest rate charged on the loan balance is:
Provide a definition of the exp function : E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 9. In either case, you will need to provide a definition of the exp function which handles dual numbers correctly (see sqrt and cos in dual.py for examples)
Respectable economic motive for selling of state-owned firms : Explain the possible problems for consumers of each of the following ways of dealing with a natural monopoly: Why do most economists argue that the money raised by selling off state-owned firms is not an especially good argument for selling them? Wha..
New contract with the federal government : Congratulations! Your company just won a lucrative new contract with the Federal Government to supply widgets for a total value of $50 million. If you perform well and on time on this job it will open the door to hundreds of millions more of futur..
Create the folders and files that appear in the file layout : Create the folders and files that appear in the attached file layout. Define at least two styles in your CSS file. These styles are completely up to you. You can change the body font, or create a header class, or format something in the footer.
Problem regarding the career opportunities : Write a 2-3 page paper. In your paper include the following: Discuss positions that are available for people with a knowledge of finance? Provide 3 examples of occupations that also use finance. Give a brief description of each.
Determining the incremental revenues : a. How much are the incremental revenues associated with the special order? b. How much are the incremental costs associated with the special order? c. How much additional profit or loss will be incurred if the order is accepted AND should it accept ..
Arguement put forth by advocates of the singlr tax movement : The main arguement put forth by advocates of the singlr tax movement was that:
Calculate the accumulated value of the fund : Calculate the accumulated value of the fund on January 1, 2020.

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Personal qualities related to online dating

Write a PHP program that presents a form to a user asking them questions about their own personal qualities related to online dating

  Casemr red bought a powerboat from blacks boat sales under

casemr. red bought a powerboat from blacks boat sales under a conditional sale agreement paying 5000 down with the

  Program that uses repetition and switch structures to print

Write a program that uses repetition and switch structures to print the song "The Twelve Days of Christmas." One switch should be used the print the day (i.e., "First", "Second", "Third", etc.). and another switch structure should print the remain..

  Develop a dynamic website open university

Develop a dynamic website Open University

  The law of contract is effective and able to protect the

the law of contract is effective and able to protect the weaker party from the stronger one when a contract is being

  Case henry is the owner and operator of farm equipment

case henry is the owner and operator of farm equipment sales ltd. he hired hector as a new management trainee starting

  Students are required to complete a research report the

students are required to complete a research report. the research report represents 30 of the marks for the unit. in

  Xhtml form that collects a name

Create an XHTML form that collects a name, address, phone number, and zip code. The phone number must be input in the format of ddd-ddd-dddd and the zip code must be in the format of ddddd-dddd.

  Create a html page

Create a HTML page where a user can select a state from a list of all 50 states. When the user select the state, the web page must make an Ajax call to fetch the capital of the state and display it in another text box.

  Shopping cart program for web applications classpurpose -

shopping cart program for web applications classpurpose - allows user to browse while keeping track of the items in

  Create a simple survey

Create a simple survey form that posts to a PHP script and then saves the form inputs to a file. The program should then respond with a display of the information contained in the file including the latest post

  Describe the basic tenants of object-orientation

Write a function reduce($arr, $func) that takes an array and a function as a parameter. The reduce function should apply the parameter function to each element of the array in succession to produce a single result - Write a function modeMaker() tha..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd