Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9203635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:30:58+00:00 2026-06-17T23:30:58+00:00

I begin by saving the file as template.php I create a folder titled ‘includes’

  • 0

I begin by saving the file as template.php

I create a folder titled ‘includes’

I create two files, ‘header.php’ and ‘footer.php’

Here’s the code I’m cutting up:

<!-- start page -->
<div id="page">

    <img src="images/bookshelf.jpg"
        alt="Bookshop Logo"
        id="logoImage" name="logoImage"
        width="800" height="110"/>

  <!-- start content -->
  <div id="content">
    <h1>Welcome to <?php echo $pagetitle?></h1>
  </div>
  <!-- end content -->
</div>
<!-- end page -->

</body>
</html>

I cut the following code out:

<!-- start page -->
<div id="page">

    <img src="images/bookshelf.jpg"
        alt="Bookshop Logo"
        id="logoImage" name="logoImage"
        width="800" height="110"/>

  <!-- start content -->
  <div id="content">

I open header.php

I replace all the content with the above content I cut.

I save header.php

I return to template.php and cut the following and paste it into footer.php, replacing the code there:

<h1>Welcome to <?php echo $pagetitle?></h1>
  </div>
  <!-- end content -->
</div>
<!-- end page -->

I save changes and go back to the template file.

At this stage I’m being told there’s a syntax error on line 5. ‘Code hinting may not work until you fix this error’.

At this stage, my graphics are different from the course instructor’s which shouldn’t be the case.

He’s only got a little music note left on a brown background. I’ve still got a jpeg showing.

Now I add commands to include headers and footers as follows:

At the stage of adding <?php include("); ?> there’s meant to be an autosuggest to browse, this happens for the instructor but not for me so I type (“includes/header.php”); ?>

By this time, when I go into live view, I’m given a white page with nothing, completely different from the instructor’s page. Very frustrating because I’m following the steps using video and can’t understand what I am doing differently. I’ve done this twice with a failed result.

The exercise is demonstrated in CS4. I’m using CS5. Does this have anything to do with it?

I am sorry. I have used design view up until now and this is the beginning of me moving to code which is extremely intimidating. I hope the way I’ve presented my problem isn’t useless to you understanding it.

Please explain slowly for me. I’m not a pro.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:30:59+00:00Added an answer on June 17, 2026 at 11:30 pm

    This post might be way past needing answering, but as I came across it I thought I’d throw my hat in the ring and try to assist.

    This might be too simple of a suggestion, but if you created the files (header.php and footer.php) into a subfolder called includes but the images remained in the root then you must also adjust the location of the files to which you are pointing to (as they remain in the parent/images folder which is no longer native you the location of your included files – change the <img src="images/bookshelf.jpg" sections of both include files to <img src="../images/bookshelf.jpg".

    Note that the change here is to instruct the viewer that the images are in fact up one directory level inside a sub-directory called images.

    In regards to the “code hints” that could just be a simple issue with having to enable the code hints? Check :

    • Edit -> Preferences
    • Options
    • Enable Code Hints

    Is turned on.

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application I store on every machine some files in an application folder.
Let me begin by saying I realize this isn't the best idea from an
(Let me begin by saying that a) I appreciate this is the wrong place
I will begin by saying that I'm a complete newbie as far as AppleScript
begin . . . # error occurs here . . . rescue => error
I begin in Python language and face a problem with my script. On stackoverflow,
To begin i read all resources from xml in my MergedDictionaries and now I
To begin with, let me say that I understand how and why the problem
To begin with, I'm not even sure, if it is the right way to
To begin with, the application in question is always going to be on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.