Navigate back a directory

Hi,

I currently am using links to php files that are currently in the same directory.

I ned to navigate to a different directory and display a file there and when a link is selected in that directory it will bring me back.

Here’s what I’m using when all files are in the same directory:

[php]

  • Back
  • [/php]

    This downloads file is in a different directory and I need to be able to go there.

    For example downloads is in:

    C:\wamp\www

    and I need to jump to:

    C:\wamp\www\Reports\report_display.php

    In the reports.php I have:

    [php]

  • Back
  • [/php]

    If I use:

    [php]

  • Back
  • [/php]

    Then the navigation throws an error and the navigation stays in the Reports directory.

    Any ideas??

    Cheers.

  • Back
  • This will not work as a web user can not access your entire C drive.

    [php]

  • Back
  • [/php]

    You should lay out your links relative to the web root. So if your site is running on c:\wamp\www your links should be

    c:\wamp\www\downloads.php
    [php]

  • Display reports
  • [/php]

    C:\wamp\www\Reports\report_display.php
    [php]

  • Back
  • [/php]

    Cheers thanks. I was missing a single /

    Darn :slight_smile:

    yep, it works :slight_smile: thanks :slight_smile:

    Sponsor our Newsletter | Privacy Policy | Terms of Service