Quick PHP question

Out of context: Reply #13

  • Started
  • Last post
  • 25 Responses
  • JamesBoynton0

    Yeah, thats what i mean, the problem is that in the navigation.php all the files link like so

    <a href="../about.php>
    <a href="../news.php>
    <a href="../contact.php>

    But when im on the homepage for example those links try to go up a level rather than to the directory /about/about.php

    I guess what im asking is is there way that the php knows what directory you are in (wether its one, two three etc levels up) and changes the link accordingly?

View thread