Jump to content

Search the Community

Showing results for tags 'referencing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi, I am designing a new web page with a navigation bar (nav.php) that is used by pages throughout the site. The "nav" is in the main directory, some other pages are in the sub-directories. The (relative) links in "nav" do not work when referenced from a "file" in a subdirectory. I suspect this is because they are being read relative from the "file" directory, rather than the directory that "nav" is in. Please confirm that this would be the case!?! Please advise is this a suitable practice of using a single "nav" across all subdirectories (I was planning on nesting to a second level so that when the about button for instance is clicked it would show something like: HOME ABOUT SHOP [level 1] RED BLUE YELLOW BLACK [level 2 about red ones] so that a second nav bar in the about folder nested under the main "nav") or is it typical to just put a different one in each directory so they all have to be updated, or do I just put all the files in one directory or is there some other way that this might better be done? I've nearly got this working [file attached]: <?php $path = $server['DOCUMENT_ROOT']; $path .= "/subpath/public"?> <html> <a href=<?php print "$path";?>/pathext/about1.php>ABOUT1</a></html> When I view the source on my browser it is right, I can even cut and paste the path/file back into the browser and it works, but it doesn't work in the code. What am I am doing wrong here?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.