Without underline '/', the link is directly introduced The directories under this folder are underlined, which refer to the directories under the site. Without underline '/', the link is directly introduced The directories under this folder are underlined, which refer to the directories under the site.

Home >Backend Development >PHP Tutorial >The difference between HTML imported files and whether they are underlined

The difference between HTML imported files and whether they are underlined

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-28 08:25:431564browse
<span><</span><span>link </span><span>rel=</span><span>"stylesheet" </span><span>href=</span><span>"public/bootstrap-3.3.5-dist/css/bootstrap.min.css"</span><span>></span>
does not have the underscore '/', and the link directly introduces the directory under this folder. With an underscore, the link directly introduces the directory under the site.
<span><</span><span>link </span><span>rel=</span><span>"stylesheet" </span><span>href=</span><span>"/public/bootstrap-3.3.5-dist/css/bootstrap.min.css"</span><span>></span>
These two URLs are different, and the imported URLs are also different.

The file introduced above is: http://localhost:63342/Sphinx/blog/public/bootstrap-3.3.5-dist/css/bootstrap.min.css

The file introduced below is http://localhost:63342/ public/bootstrap-3.3.5-dist/css/bootstrap.min.css

The difference lies in whether it is a file starting from the root directory. Pay attention to the 404 error caused by the underscore /

The above introduces the difference between HTML imported files with and without underscores, including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP加速器eAccelerator安装Next article:curl的使用