本文介绍了Filezilla 删除 php 文件上的换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何阻止 Filezilla 更改我的换行符?

出于某种原因,Filezilla 有时会删除我的 php 文件中的换行符,从而使代码出现在单行上,当我上传项目时出现一堆错误,我环顾四周并将传输类型更改为二进制,但我仍然有同样的问题,也下载了CuteFTP,但同样的问题.

For some reason Filezilla sometimes removes line breaks on my php files making the code appear on a single line giving me a bunch of errors when I upload my projects, I was looking around and changed my transfer type to Binary but I still have the same issues, downloaded CuteFTP as well but same problem.

有谁知道我可以做些什么来解决这个问题?

Does anyone know what can I do to fix this?

提前致谢!

现在我检查了,当我将文件上传到我的主机时,它们也会在一行中显示,但它没有给我任何错误,问题是当我上传到我的客户主机时,可能是主机上的一些配置或其他什么?

Now that I check, when I upload the files to my hosting they look in one line as well, but it doesn't give me any errors, the problem is when I upload to my clients host, could it be some configuration on the hosting or something?

推荐答案

好吧,我解决了我的问题,我不知道我刚刚删除了文件夹,再次上传为ASCII,更改为Binari,重新启动Filezilla,删除再次将文件重新上传为 Binari.由于某种原因它现在可以正常工作,也许您必须重新启动 Filezilla 才能正确应用更改.

Well, I managed to solve my problem, I dont exactly know how I just deleted the folder, uploaded as ASCII again, changed to Binari, restarted Filezilla, deleted the files again, and re-upload it as Binari again. For some reason it works now, maybe you have to restart Filezilla to apply the changes correctly.

这篇关于Filezilla 删除 php 文件上的换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-12 08:20