Help Please With Header/Footer Includes

Can someone please help with an easy to follow answer?
I am building a site and want to use the header and footer as include files to make maintenance of the links easier. In the header, the navigation is rollover graphics. (I mention this because there is an issue with the image paths.) I have been able to get the includes showing up and working, but my problem is that I wish to use subfolders and it's here I'm going round in circles. The graphic navigation is visible at the root level only.
My site structure goes like this:
Root has index.php and a couple of other pages, plus the following directories, css, images, includes (containing my header.php and footer.php), subfolder1 (containing index.php) and subfolder2 (containing index.php).
The navigation works on the root level but not at the sub-level. I have tried using both document and site relative links, ../ as well as / and./ paths but I can't figure this out.
My navigation is HOME | SUBFOLDER1 | SUBFOLDER2 | CONTACT | LINKS. Hope this is clear.

Server side includes are great for doing what your doing.
Sounds to me like you understand the different types of URLs you can use but you will need "site root relative" urls in your links in your include file.  You will also need to think about the path in your include but I imagine you know that.
If you have a link in your navigation and it links to a page in a folder then your link must include the full path e.g.
<li><a href="/pages/cv.php" title="Curriculum Vitae">CV</a></li>
If your included file is in a folder and not the root you will need to declare its path
<?php
include 'pages/menu.php';
?>
If you want a tutorial on this try:
http://www.communitymx.com/content/article.cfm?cid=AEDCC52C4AD230AD
http://www.motive.co.nz/glossary/linking.php
I'm not sure what else to suggest really except that you add a bit of the code from your file and include file?
Martin

Similar Messages

  • Help needed with header and upload onto business catalyst

    Can someone help with a problem over a header please?
    I have inserted a rectangle with a jpeg image in  background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
    That's one problem.
    The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
    And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
    Can anyone help ? Thanks.

    Thanks for replying,
    How can I check the preview in other browsers before I publish a provisional site with BC?
    The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
    In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
    Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
    Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
    I’m a novice with Muse with an ambitious site !
    Thanks for your help.
    Mary Featherstone
    Envoyé depuis Courrier Windows
    De : Sanjit_Das
    Envoyé : vendredi 14 février 2014 22:15
    À : MFeatherstone
    Re: Help needed with header and upload onto business catalyst
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion 
    Hi
    Answering the questions :
    - Have you checked the preview in Muse and also in other browsers ?
    - Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
    - In design view the rectangle is set to 100% browser width ?
    With publishing :
    - Please try to rename the image file and then relink
    - If it happens with other images as well , see if all the image names includes strange characters or spaces.
    - Try again to publish
    With e-mail from BC :
    - Under preferences , please check the country selected.
    - If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Help please with FaceTime. The built in app seems to have disappeared from my iPad2. Bought it in Australia

    Help please with FaceTime. My built in app seems to have disappeared.

    If K Penguin's suggestion doesnt work, you will have to go to you iTunes and do a reset, that is if you do not have it in your back up library.

  • Little help please with forwarding traffic to proxy server!

    hi all, little help please with this error message
    i got this when i ran my code and requested only the home page of the google at my client side !!
    GET / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    Accept-Language: en-us
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
    Host: www.google.com
    Connection: Keep-Alive
    Cookie: PREF=ID=a21457942a93fc67:TB=2:TM=1212883502:LM=1213187620:GM=1:S=H1BYeDQt9622ONKF
    HTTP/1.0 200 OK
    Cache-Control: private, max-age=0
    Date: Fri, 20 Jun 2008 22:43:15 GMT
    Expires: -1
    Content-Type: text/html; charset=UTF-8
    Content-Encoding: gzip
    Server: gws
    Content-Length: 2649
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: MISS from linux-e6p8:3128
    Via: 1.0
    Connection: keep-alive
    GET /8SE/11?MI=32d919696b43409cb90ec369fe7aab75&LV=3.1.0.146&AG=T14050&IS=0000&TE=1&TV=tmen-us%7Cts20080620224324%7Crf0%7Csq38%7Cwi133526%7Ceuhttp%3A%2F%2Fwww.google.com%2F HTTP/1.1
    User-Agent: MSN_SL/3.1 Microsoft-Windows/5.1
    Host: g.ceipmsn.com
    HTTP/1.0 403 Forbidden
    Server: squid/2.6.STABLE5
    Date: Sat, 21 Jun 2008 01:46:26 GMT
    Content-Type: text/html
    Content-Length: 1066
    Expires: Sat, 21 Jun 2008 01:46:26 GMT
    X-Squid-Error: ERR_ACCESS_DENIED 0
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: NONE from linux-e6p8:3128
    Via: 1.0
    Connection: close
    java.net.SocketException: Broken pipe // this is the error message
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
    at java.io.DataOutputStream.writeBytes(DataOutputStream.java:259)
    at SimpleHttpHandler.run(Test77.java:61)
    at java.lang.Thread.run(Thread.java:595)
    at Test77.main(Test77.java:13)

    please could just tell me what is wrong with my code ! this is the last idea in my G.p and am havin difficulties with that cuz this is the first time dealin with java :( the purpose of my code to forward the http traffic from client to Squid server ( proxy server ) then forward the response from squid server to the clients !
    thanx a lot,
    this is my code :
    import java.io.*;
    import java.net.*;
    public class Test7 {
    public static void main(String[] args) {
    try {
    ServerSocket serverSocket = new ServerSocket(1416);
    while(true){
    System.out.println("Waiting for request");
    Socket socket = serverSocket.accept();
    new Thread(new SimpleHttpHandler(socket)).run();
    socket.close();
    catch (Exception e) {
    e.printStackTrace();
    class SimpleHttpHandler implements Runnable{
    private final static String CLRF = "\r\n";
    private Socket client;
    private DataOutputStream writer;
    private DataOutputStream writer2;
    private BufferedReader reader;
    private BufferedReader reader2;
    public SimpleHttpHandler(Socket client){
    this.client = client;
    public void run(){
    try{
    this.reader = new BufferedReader(
    new InputStreamReader(
    this.client.getInputStream()
    InetAddress ipp=InetAddress.getByName("192.168.6.29"); \\ my squid server
    System.out.println(ipp);
    StringBuffer buffer = new StringBuffer();
    Socket ss=new Socket(ipp,3128);
    this.writer= new DataOutputStream(ss.getOutputStream());
    writer.writeBytes(this.read());
    this.reader2 = new BufferedReader(
    new InputStreamReader(
    ss.getInputStream()
    this.writer2= new DataOutputStream(this.client.getOutputStream());
    writer2.writeBytes(this.read2());
    this.writer2.close();
    this.writer.close();
    this.reader.close();
    this.reader2.close();
    this.client.close();
    catch(Exception e){
    e.printStackTrace();
    private String read() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    private String read2() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader2.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    Edited by: Tareq85 on Jun 20, 2008 5:22 PM

  • Can anyone help please with my Time Machine, I have been getting the following message The backup disk image "/Volumes/Mac Backup/Stephen Smith's iMac.sparsebundle" is already in use.

    Can anyone help please with my Time Machine, I have been getting the following message The backup disk image “/Volumes/Mac Backup/Stephen Smith’s iMac.sparsebundle” is already in use.

    See > http://pondini.org/TM/C12.html

  • Help please with 2006 Macbook 13inch, for tv hook up.

    Help please with 2006 Macbook 13inch, to hook up to tv for streaming. The display works through VGA but the audio isn't working. Got a plug that goes into headphone jack on computer and connects into the audio jack on the back of tv but no sound. I'm not quite sure what the issue is, whether its the wrong plug, the tv, or the computer. Best Buy says this is the right plug and it seems that it would be, but who knows. If anyone has any experience in this, I would appreciate the help!

    Make sure those audio plugs are matched with the VGA plug. With your MacBook running something with audio switch between your sources on the TV Component, Composite and such. See if the sound is coming from another source. If so then you've got your audio plugs in the wrong jacks.
    Also could you post the make and model number of your TV.

  • Help Please with Driver

    I need to install the ADB Interface for the X2 onto my computer. Does any one know how or where I can get this driver?

    <Duplicate post.  Please see Help Please with Driver  for any replies.  This post will be closed.>

  • Help please with my navigation buttons

    Can anyone please help me with my vertical navigation buttons. I'm trying to set up my nav bar so that all the buttons have a background image (button.jpg) behind them at all times and the only thing that changes when touched or the mouse rolls over them is that the colour of the text changes, except when the sub buttons appear, because the name of some of the sub buttons are so long i have created another button image that is longer (button2.jpg), i only want this to appear on sub buttons otherwise the buttons will end up taking most of the pages space. I'm having great difficulties getting the sub buttons to appear with the correct image (button2.jpg) and am getting increasingly frustrated with it, can anyone please help!!!
    www.milesfunerals.com/index2.html

    index2.html is a broken link for sure. The main index page looks like it's working fine.
    A little styling critique if it's okay... Personally I'd have gone with a CSS or Javascript multi-level menu across the bottom of the header. Saves visitors from having to scroll all the way down the page to see every menu item. And I'd rethink the color of the "Miles & Daughters" in the header image. It kinda gets lost in the roses.
    If you have a link to the "broken" page please put it up so we can analyze it.

  • Help please with wrangling Windows 7 fonts

    This may seem off-topic, but I'm hoping the practical expertise of posters here in working with fonts might provide some insight.  I've posted in Windows-centric forums, but most general users seem not to understand font issues, so couldn't respond.  Any help would be appreciated.
    So.  I have two questions, please:
    1)  My version of Windows 7 (Australian) comes bundled with other fonts included on a "regional" basis, including dozens of Asian languages.  Congrats to Microsoft for making these available, but they're not optional;  they're installed in the Windows\Fonts folder, and marked as system files, so if they're moved to another location (with the intention of handling them with a Font Manager and making them available on-call) the system just restores them in the folder at the next reboot.  In the meantime, they clog the installed fonts list — most of them, uselessly, for any individual user.  Is there any way of bringing these under control?
    and
    2)  My copy of Windows 7 does a kind of autofill on fonts, where missing glyphs are filled in with glyphs generated by the system, that appear in the Font Display and Font Properties windows, but also appear in my Font Manager's cascaded display.  It makes it much harder to choose fonts that have the glyphs I need, even though the match in the display is often not a very good one — it's often not hard to spot, but it makes the process of choosing much more laborious.  And strangely, it doesn't happen for every font, but I've been unable to find what determines whether the system substitutes fonts or leaves the glyph spaces blank.  And I haven't been able to find any documentation or mention of this behaviour, let alone any way to modify it or switch it off.  I'm surprised that I haven't even seen it mention in discussions.  Can anyone help with suggestions or insight on this please?  Ideally, how do I switch this off?
    Thank you for any responses.

    In terms of fonts that Windows 7 installs in its C:\Windows\Fonts directory, you delete, move, or manage those at your own risk. Some are required by Windows itself and others are assumed to be available by applications from Microsoft and others. Be careful.
    You should also be aware that many system vendors install their own “added value software” on new systems in addition to Windows itself. (Some would designate some of this dubious “added value software” as shovelware.) Such software may also install fonts. Personally, I've seen some such software add upwards of 50 to 100 mediocre typefaces to the system. All such fonts are certainly deletable assuming you either delete the shovelware, don't use it, or at least don't use the funtionality that calls upon such fonts.
    In terms of what you describe as autofill on fonts, Windows and various Windows applications do have a function by which any “missing glyphs” in a font are filled by comparable glyphs from some other system font per configuration in the Windows registry. You actually see this using the Character Map utility where it appears that all fonts have all glyphs (or at least all TrueType fonts have all glyphs).
    The good news is that within Adobe applications, such autofill as you describe it does not occur. You get the pink box. To see what glyphs are actually defined in a font, you should look at the glyphs panel for the font in question. Only the glyphs actually defined in the chosen font will appear.
              - Dov

  • Need Help Please with Flash Professional - No Cursor Change on Buttons/Links in Mac OS

    Hi Folks, I am relatively new to Flash Professional but I recently built a very nice flash website with very little problems.  I noticed after I uploaded my site to my server, that my mouse cursor did not change from an arrow to a finger on any of my buttons.  It did change on the hyperlinks, but not on the buttons.  Everything still worked fine but there was no indication to the user that an object was in fact an interactive button.  I found this code:  button1.buttonMode = true; button1.useHandCursor = true; and inserted it for all my buttons and that seemed to fix everything, I tested the site on firefox, ie, and safari.  I am using a PC with windows 7.  When I went to check the website on a Mac powerbook, the cursor did not change on any of the buttons and it does not change on any of my hyperlinks either.  I have searched all over trying to find a solution and have had no luck.  Can anyone please help me with this problem or point me in the right direction?  Any advice would be very much appreciated.  Thanks so much!!!

    Thank you so much for replying!  I did in fact let flash professional create the HTML page for the site and have not altered it at all.  Would you have any other suggestions as to why it's not displaying my links/buttons on a Mac?  I checked out the browsers Firefox, ie, and safari on my pc, but looking thru safari on the Mac, the cursor does not change on any of my links or buttons.  Thanks again so much for the reply, nice to hear from a human instead of reading thousands of posts!  Very much appreciated!!!!!

  • Help please :) with do not disconnect.

    I disconnected my ipod and I still get that "Do not disconnect message" And it doesnt even flash.
    Can somone please help me with this

    Try Resetting your iPod. Hold down the MENU and SELECT (centre) buttons for five or ten seconds until you see the Apple logo appear then the menu button to go to the normal display. Have a look at this link as well:
    iPod won't turn on
    iPod stops responding or will not waken from sleep

  • Urgent help please with MIDI pedal

    I just got an old awesome midi pedal called the X-15 Ultrafoot.
    The pedal has two expression pedals, and 10 pushbuttons/pads. (and two buttons to cycle through additional banks, and a "mode" and "bypass" button)
    Somebody please help I am on the verge to having amazing control.
    What I want to do is have each pushbutton be assigned to a parameter, which is easy to program. Then I want to make the expression pedal(s) also be assigned to that last selected parameter. How do I do this?
    How can I make the expression pedals control over the parameter remain exclusive to just the last selected parameter?!
    Somebody save me please thanks

    mr kglad i really hope my ( too many replies and questions ) don't bother you.. but please excuse me if they sound foolish or something im a beginner as mentioned...
    There must be something wrong with whatever im doing ... ( im so desperate and since you are the only one who replied on me i really need your help please.. )
    1- i published the first fla as a swf (10.3 ) with a button with the code you've given me )
    2- i published the second fla as a swf (10.3) with another button with the same code you've given me )
    3- i made a main page where there are two buttons.. one for english and one for foreign language
      English button with this code :
    Engbutton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_4);
    import fl.display.ProLoader;
    var fl_ProLoader_4:ProLoader;
    //This variable keeps track of whether you want to load or unload the SWF
    var fl_ToLoad_4:Boolean = true;
    function fl_ClickToLoadUnloadSWF_4(event:MouseEvent):void
        if(fl_ToLoad_4)
            fl_ProLoader_4 = new ProLoader();
            fl_ProLoader_4.load(new URLRequest("englishformFIN.swf"));
            addChild(fl_ProLoader_4);
        else
            fl_ProLoader_4.unload();
            removeChild(fl_ProLoader_4);
            fl_ProLoader_4 = null;
        // Toggle whether you want to load or unload the SWF
        fl_ToLoad_4 = !fl_ToLoad_4;
    and the other button with the same code ( the second fla )
    IT DOESNT WORK WHEN I TEST THE MOVIE.. the return buttons nor the main ones..why why why why why... ???
    i really need your help
    THANK YOU in advance

  • Help please, with port forwarding settings

    I have an MSI RG60 wireless router (Ethernet hard wired to my XP Home PC) and don't know what settings to use for port forwarding, to enable my WinMX and BitTorrent clients to work successfully.
    I have the port numbers, and assume that this information goes in the Service Port box, i.e. 6699, or 6881-6889.
    I know which ports are TCP and which are UDP, but I don't know what IP address to enter or which Common Service Port type to choose. Can anyone help please?
    I'm pretty sure that other settings in my PC are OK as I have successfully been running a Belkin router for a couple of years, and have only replaced it with the new MSI unit due to reliability problems.

    It does indeed have port triggering, but it wants incoming and trigger port protocol info, along with trigger and incoming port numbers.
    How can I type ipconfig into either of teh clients...WinMx or Bit Torrent?

  • Help Please With iPod Player On My 3GS

    Hello, Could anyone help me with a problem with my iPod part of my iPhone 3GS. The iPod will start to play my desired Playlist, but during the playback, the track album covers forget the last played track and franticly search for it. The album covers can rotate for ever and eventually lock the phone up and steel the album cover images at random. I have to then re-sync with iTunes to get them back. My last 3G phone did the same thing and I had it replaced, but still the same with the new 3G. Now I have a new 3GS, so the problem must be in iTunes Folder. I have a lot of tracks & platlists so I don't want to rush to reformat iTunes. Any ideas please? Jeff

    I'm having the same issue - did you ever find a solution?

  • Help please with caurina

    Hi, I have a bunch of logos in a file and want to animate with caurina, so I had create a timer to show ( fade in - fade out) the logos one by one;
    I had previously fade all the logos with alpha =0; but don´t any idea about how to call it inside the caurina function. my logos all are called logo1, logo2,logo3 etc and I try it to create a variable to hold a number and them put the first part of the name(logo) + the variable to call the movieclip but it didn´t work.Please if someone could help me with this problem.
    //this variable hold the 2nd part of the name
    var logoContador:Number = 1;
    var miTimer:Timer = new Timer(3000);
    miTimer.addEventListener(TimerEvent.TIMER, goTimer);
    function goTimer(TimerEvent:Event):void
    Tweener.addTween(logo+logoContador,{alpha:1,time:1,transition:"easeInQuad",});
    Tweener.addTween(logo+logoContador,{alpha:0,time:1, delay:1.7,transition:"easeInQuad",});
    logoContador++
    miTimer.start();

    yes, you where right it was the extra coma before the end, works very soft and cool, and even using a conditional inside can use it as a  loop.
    Thanks so much for your help, here is the whole script, could be useful to other people.
    import caurina.transitions.*;
    //this variable hold the 2nd part of the name
    var logoContador:Number = 1;
    var miTimer:Timer = new Timer(3000);
    miTimer.addEventListener(TimerEvent.TIMER, goTimer);
    function goTimer(TimerEvent:Event):void
    Tweener.addTween(this["logo"+String(logoContador)],{alpha:1,time:1,transition:"easeInQuad" });
    Tweener.addTween(this["logo"+String(logoContador)],{alpha:0,time:1, delay:1.7,transition:"easeInQuad"});
    if(logoContador>=6)
        logoContador = 1;
    else
    logoContador++
    trace("im runing");
    trace(logoContador);
    miTimer.start();
    //- end of script

Maybe you are looking for