Results 1 to 3 of 3

Thread: Path for Include file

  1. #1
    Join Date
    Sep 2008
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Path for Include file

    Hello all.
    I would like to know how to reference a file in another folder as an include file.

    My webpage is located at: htdocs/MyWebsite/xhtml/myPage.php

    I want to have an include file in the above page what references the following file: htdocs/MyWebsite/PHP/thisPage.php

    What should my include file path be
    <?php include "............."; >?

    dallr

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    PHP Code:
    <?php
    include('../PHP/thisPage.php');
    ?>
    That should work.
    Jeremy | jfein.net

  3. #3
    Join Date
    Sep 2008
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks much.!!

    Dallr

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •