Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2007
    Posts
    680
    Thanks
    319
    Thanked 1 Time in 1 Post

    Link to pages...

    I having problems linking my pages... I was hoping there was a script someone know I can use...

    If I link to a page using the FULL url, it does not work... well includes don't anyway.
    Code:
    http://martynleeball.x10hosting.com/website/includes/menu.php
    http://martynleeball.x10hosting.com/website/folder1/file1.php
    http://martynleeball.x10hosting.com/website/index.php
    ^ Does not work...

    Code:
    /website/includes/menu.php
    /website/folder1/file1.php
    /website/index.php
    ^ Does not work...

    Code:
    includes/menu.php
    folder1/file1.php
    index.php
    ^ Does work... But have to use ../ to go back directories which can be anoying to type in all files as ../../ may be needed.

    if you get what I mean...

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    When you refer to a full URL, PHP goes into URL wrapper mode, which is going to limit what you can do with that file. For example, you can't delete a file by referring to it with a full URL.

    http://us2.php.net/manual/en/wrappers.http.php


  •  

    Posting Permissions

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