img 显示问题

WBOY
WBOYOriginal
2016-06-23 13:33:57826browse

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


回复讨论(解决方案)

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

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

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

可以了,谢谢大虾。

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