我使用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,但是include却不起作用。为什么?为什么是在本地服务器上而不是在线服务器上?