Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member princeeternity's Avatar
    Join Date
    Jul 2014
    Location
    Jharkhand, India
    Posts
    15
    Member #
    39703

    Exclamation Having absolute URLs in a local website?

    I have 5 .php pages for an offline website project that will soon be online. The five pages are: index.php, about.php, etc. Now, I'm including the header file in each one: <?php include"header.php";?>

    The header.php contains the navigation menu. And here's my question:

    What link should I put in the navigation items?

    <ul>
    <li><a href="whatGoesHere.php?"></a></li>
    ...
    ...

    I have index.php and about.php at the main directory, but the other three pages are inside a folder "categories", so that the hierarchy becomes like this:

    http://localhost/categories/cat1.php

    The same header.php will be included inside the cat1.php and about.php. How do I make absolute URLs of local files?

    (I'm using PHP5.5, Apache 2.6.4, and running Ubuntu 13.10)

  2.  


Remove Ads

Posting Permissions

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

Tags for this Thread

All times are GMT -6. The time now is 02:11 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com