eclipse生成通过ftp上传的php文件的问题
我已将使用 Eclipse-PDT 创建的 PHP 项目上传到 siteground 服务器。 完成上传后,我尝试运行 php 页面,但它抛出一个错误,提示“预期语句结束”。 然后我登录到CPANEL,发现所有换行符都从脚本中删除了。因为我在我的 php 脚本中使用了“单行注释”,所以它抛出错误(下一行也会附加到上一行) 有人可以帮助解决这个问题吗?我有很多 php 页面,因此不可能从所有页面中删除所有单行注释。
I have uploaded my PHP project created using Eclipse-PDT to the siteground server.
After completing the upload, i tried to run the php pages and it throws an error saying "Expected End of statement".
Then i logged in to the CPANEL and found that all the line breaks are removed from the script. since i have used "single line comments" in my php script ,its throwing error(next line will also append to the previous line)
can anybody help to solve this issue? i have a lot of php pages ,so its not possible to remove all single line comments from all the pages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许是文件编码不同造成的?
检查您的编辑器中使用哪种格式。
Maybe its caused by different file encoding?
Check which format is used in your editor.