Home > Backend Development > PHP Tutorial > thinkphp 路径问题

thinkphp 路径问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:09:16
Original
975 people have browsed it

1.环境平台是windows,php5.6,nginx1.8.0
2.所有的引用时相对路径,但是目前页面上显示的都是绝对路径,求解

回复内容:

1.环境平台是windows,php5.6,nginx1.8.0
2.所有的引用时相对路径,但是目前页面上显示的都是绝对路径,求解

参见https://segmentfault.com/q/1010000005081396

你使用了 thinkphp 的 U 方法吗,如果是静态文件的话在页面上看他显示是 域名后接绝对路劲。应为你表述比较少,目前就能想到这么多了

Related labels:
Statement of this Website
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
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template