What is the difference between absolute path, physical path, and complete path, and how to understan

Updated on technology 2024-03-26
7 answers
  1. Anonymous users2024-02-07

    An absolute path is an absolute location in a directory that directly reaches the target location.

    A physical path is a path that is local to a computer and starts with a drive letter, such as c:, d:temp, and so on.

    In the database connection of ASP, only the physical path can be connected, but not the relative path, so you need to use objects to convert the relative path into a physical path.

    A full path is a path that starts at the root, for example.

    Windows.

    c:\abcd\abcd\

    Linux.

    mnt/media/

    Using the full path, you can uniquely locate a file or folder.

  2. Anonymous users2024-02-06

    The difference expressed by these two paths is that absolute paths can be referenced exactly, while relative paths apply concepts vaguely and simply find references in the target directorySo most html workers choose to use relative paths.

    Absolute path: The absolute path is the real path of the file or directory on your homepage on the hard disk, (url and physical path) for example: c: xyz represents the absolute path of the file. It also represents a URL absolute path.

    Relative Path: A path relative to a base directory. Contains the relative path of the web (relative directories in HTML), for example:

    In the servlet,"Represents the root directory of the web application. A relative representation of a physical path, for example:".

    represents the current directory".Represents the parent directory. This similar representation also belongs to the relative path.

    Comparison of absolute and relative paths:

    Advantages: 1. Prevent malicious plagiarism, use the absolute path, if someone plagiarizes your content, the link inside will also point to your. Some plagiarists are lazy, and even the links inside are copied together.

    3. Even if the webpage is moved, the link still points to the correct URL.

    Disadvantages: 1. Unless the link is inserted dynamically, there is no way to test it on the test server. Because the link inside will point directly to the real domain URL, not the URL in the test server.

    2. Unless the link is inserted dynamically, it will be difficult to move the content page. Because the content page position changes, the links on other pages may not follow the change and point to the original hard-coded absolute path.

  3. Anonymous users2024-02-05

    The difference between a relative path and an absolute path is:1. Absolute path: It is the real path of the file on the local hard disk, that is, the URL and the physical path.

    2. Relative path: relative to the path of a certain base directory (generally for web directories, including the relative path of the web). In the network, the links that start with http are absolute paths, and the absolute path is the real path of the file or directory on your homepage on the hard disk.

    3. In fact, the difference between the absolute path and the relative path is only that the reference points used to describe the directory path are different. Since the reference point of the root directory is the same for all files on **, the path description method that uses the root directory as the reference point is called an absolute path.

  4. Anonymous users2024-02-04

    First, the advantages are different

    1. Relative path: easy to move content, can move the entire directory; The test method is more flexible, and it is more convenient to test locally.

    2. Absolute path: If someone plagiarizes your **content,The link inside will also point to you**,If someone saves your web page to the local computer,The links、**、css,and js will still be connected to**; If the location of the page changes, the link will still point to the correct URL.

    Second, the disadvantages are different

    Absolute Path - The absolute path is the true path of a file or directory on your home page on your hard drive. The absolute path is the actual path of the file or directory on your homepage on the hard disk, for example, if your perl program is stored in c: apache cgi-bin, then c:

    Apache cgi-bin is the absolute path to the cgi-bin directory.

    In the network, the links that start with http are absolute paths, and the absolute path is the real path of the file or directory on your homepage on the hard disk.

  5. Anonymous users2024-02-03

    Here are a few of the special symbols used to build the path and what they represent.

    " represents the directory in which it is currently located.

    Starts with " ": Represents the root directory.

    There is site1 and image in the root directory, and files and site2 folder in site1. There are and ** files under site2.

  6. Anonymous users2024-02-02

    The relative path can be seen from the name, which is the path of a certain folder or file as a reference point, and other folders or files. The absolute path is the absolute path, and the fixed dead path is the path of a file with the root directory as the starting point, and the path that the files we usually have on the computer really exist on the hard disk is the absolute path.

    In fact, the difference between the absolute path and the relative path lies only in the different reference points used to describe the directory path. Since the reference point of the root directory is the same for all files on **, the path description method that uses the root directory as the reference point is called an absolute path.

    Specific differences: If you convert an absolute path to a relative path, you only need to keep the different parts of the two paths, remove the same parts, and the separators of the two are different, in the relative path, you can use the " " character as the separator of the directory, and in the absolute path, you can use the " " can " character as the separator of the directory.

    In fact, when programming a web page, absolute paths are rarely used, and if you use "e: book page layout** Chapter 2 to specify the location of the background**, browsing on your own computer may be fine, but uploading it to a web server to browse will most likely not be displayed**.

    Because when uploading to the web server, the entire ** may not be placed in the E disk of the web server, it may be D disk or H disk. Even if you put it on the e-drive of the web server, the "e: book page layout ** Chapter 2" directory does not necessarily exist on the e-drive of the web server, so it will not be displayed when you browse the web page.

  7. Anonymous users2024-02-01

    Relative path refers to the path relationship between the file and other files (or folders) caused by the path where the file is located. Using relative paths can bring us a lot of convenience. HTML absolute path refers to the full path of a file with a domain name.

    An absolute path is an absolute position in a directory that goes directly to the target location, usually starting from the drive letter. The path to the full description file location is the absolute path, which is based on the root directory of the web site.

    The absolute pathname is the path from the root directory at the top of the tree directory structure to a directory or file, consisting of a series of consecutive directories, separated by a slash in between, until the directory or file to be specified, and the last name in the path is the directory or file to be pointed to. The term absolute means that when all web pages reference the same file, the path used is the same.

Related questions
18 answers2024-03-26

The specific steps are as follows:

1. Use this external reference as the base plan for all other specialties and the floor plan of the decoration. >>>More

10 answers2024-03-26

I think it's time to buy a VB book. Break the bank!

3 answers2024-03-26

Convert the local path to a URL-relative path.

private string urlconvertor(string imagesurl1) >>>More