Help: How to include files from Upper level directory

Discussion in 'PHP' started by worth2talk, Apr 8, 2007.

  1. #1
    Hi PHP Experts,

    I have been hanged badly with a problem of including PHP file from upper level directory.
    My folder structure is as below:

    My main folder name is "PHP_Main" which contains for files as
    - menu.php
    - header.php
    - body.php and
    - footer.php

    Also "PHP_Main" have few subfolders as
    - Post1
    - Post2

    Again Post1 contains file called postdata.php.

    Now, i want to include menu.php, header.php and footer.php inside postdata.php.

    Can anyone guide me how to include this.... i am left with no clue...

    Immediate help will be appreciated...

    Thanks in advance..!!
     
    worth2talk, Apr 8, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    include '../menu.php';
    PHP:
     
    rodney88, Apr 8, 2007 IP