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

  Encryption and hashing

securing a new web server and a new web application, input validation, CSRF attack, SQL injection vulnerability, Cross Site Scripting (XSS) attack, architecture mechanism Linux, Apache, MySQL, and PHP,

  Find an article no older than 2006 on a company that faced

find an article no older than 2006 on a company that faced an ethical dilemma. develop a 800-1000 word personal essay

  Describe the company and the product safety issue that led

describe the company and the product safety issue that led to the lawsuit.discuss the legal theories used by the

  Php script and then saves the form

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

  Write php script using conditional operator-ternary operator

Code the program using conditional operator. You can use ternary operator for this problem or a combination of ternary and conditional operators.

  Web application development

Create a simple Web Application that collects gradings under a number of criteria, and then calculates an aggregate mark

  Describe your experiences related to your setup of mysql

Describe your experiences related to your setup of MySQL. Include any difficulties or issues that you had encountered during the installation

  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..

  The purpose of this written project is for the student to

the purpose of this written project is for the student to proceed through all of the steps required in planning and

  Create a web site for an apple farm john smith has been a

create a web site for an apple farm. john smith has been a farmer for a number of years and he has been using an

  Online banking application

Designing and developing a web applications The company you are working has secured a contract with a local banking group to develop an ONLINE BANKING APPLICATION using PHP and MySQL.

  Describe how cookies can be used to store information

Describe how cookies can be used to store information on a computer and how the information can be retrieved by a PHP script. Assume that cookies are not disabled on the client.

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