WordPress.org

Ready to get started?Download WordPress

Forums

Calling a PHP file into header.php? (2 posts)

  1. gotmedia
    Member
    Posted 5 years ago #

    Hi, I have a question...

    When I added this:
    <?php include('menu.php'); ?>

    to my header.php, my menu wouldn't show up. But then I also did it like this:

    <?php include('/httpdocs/menu.php'); ?>

    which is the direct location of the menu. Why doesn't it show up? Do I have to do anything else in order for this to work?

  2. whooami
    Member
    Posted 5 years ago #

    assuming that menu.php is the root of your web accessible directory, the first one should work. at least it did for me when I tested it on my server. Then again, I have a supremely well configured server and dont experience the problems most people do here. :)

    the second one wont work.

Topic Closed

This topic has been closed to new replies.

About this Topic