Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP question regarding files traversing directories for other files

Options
  • 14-02-2002 11:38am
    #1
    Registered Users Posts: 14,148 ✭✭✭✭


    Anyone know if there's a way of getting the current directory under PHP

    I've got pages that need to know where they are so that they know where toi go to find specific pages in other directories

    eg.

    /file1
    /folder1/file1 -> ../file1
    /folder1/file2/folder2/dbaseConnectfile

    /file1 is calling the dbaseConnectfile, but what about /folder1/file1 ??

    Any thoughts?


Comments

Advertisement