【发布时间】:2014-03-21 10:59:28
【问题描述】:
我使用 PHP 和 WordPress。
在本地主机上,我可以毫无问题地包含 SVG 文件,但在实时服务器上。我尝试包含一个 SVG 文件,以便能够使用 CSS 对其进行样式设置。
我收到此错误消息
Parse error: syntax error, unexpected T_STRING in
/www/webvol1/34q/h6njx/mysite.com/public_html/wp-content/uploads/2014/02/fish_icon.svg on line 1
我在文件上运行 file_exists 并返回 true,但包含不起作用。为什么不?为什么在本地主机而不是实时服务器上?
【问题讨论】: