img 显示问题

WBOY
Release: 2016-06-23 13:33:57
Original
785 people have browsed it

我有一个图片命名为test(123#).jpg但是我用 img 显示问题 却无法显示,当我把#号去掉就可以显示了,貌似#把我图片的路径截断了,应该怎么处理呢?请各位大虾指点


回复讨论(解决方案)

echo urlencode('#'); //%23

# 在 url 中是锚点标志,不转义是不行的

那应该把这句话加在哪里呢?

可以了,谢谢大虾。

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!