Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Relative or absolute URLs in PHP

  1. #11
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Little better Thanks for that.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  2. #12
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    So.... URIs include all URLs, but not all URIs are URLs? And all paths* are both?

    (*In the sense of an address/path related to the location (relative or absolute) of a file/document on the web/in programming/coding/scripting.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #13
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    So.... URIs include all URLs, but not all URIs are URLs?
    Yes. URLs are a subset of URIs.

    And all paths* are both?

    (*In the sense of an address/path related to the location (relative or absolute) of a file/document on the web/in programming/coding/scripting.)
    I'm not quite sure where you're going with that. A path in a file system, for instance, isn't the same as a URI path. They might look the same, and relative file system paths might even resolve against a base path (the working directory) in the same way that a relative URI resolves against a base URI, but they aren't the same thing.

    Mike

Bookmarks

Posting Permissions

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