PHP Include Files Not Showing Up

Discussion in 'Programming' started by Vincentas, Jan 14, 2013.

  1. #1
    Hi there,

    Site was made by a previous designer and the client needed some updates. The header and nav were an image file before and I recreated them as include files with CSS. I have tried different variations to input the includes and it still not showing up live.
    Here is the code:


    <?php require_once('includes/header.html'); ?>

    <!-- main navigation -->
    <?php require_once('includes/navigation.html'); ?>
    <!-- end main navigation -->


    Thanks!
     
    Vincentas, Jan 14, 2013 IP
  2. abraham26

    abraham26 Member

    Messages:
    73
    Likes Received:
    6
    Best Answers:
    2
    Trophy Points:
    48
    #2
    Try from these:
    <?php require_once('/includes/navigation.html'); ?>
    <?php require_once('../includes/navigation.html'); ?>
    <?php require_once('http://www.mysite.com/includes/navigation.html'); ?>
     
    abraham26, Jan 14, 2013 IP
  3. Vincentas

    Vincentas Active Member

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thanks a lot ;)
     
    Vincentas, Jan 14, 2013 IP