0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FileZillaでPHPファイルをDLしたら本来ないはずの改行が発生した

Last updated at Posted at 2021-02-08

うっかり設定をいじらずにサーバーからダウンロードして、改行だらけのファイルを爆誕させてしまった(ファイルサイズも変わった)のでメモ。

対処法

メニュー>編集>設定>転送>FTP:ファイルの種類>デフォルトの転送タイプを「バイナリ」に変更
※改行が発生するときは「自動」か「ASCII(アスキー)」になってるはずです。
初期設定は自動でした。HTMLやCSS、JSファイルをアップしたりダウンロードするときは問題なく使えていたのでしばらく気付かなかった。

FileZillaに限った話でもないんでしょうけど、あたらしいFTP入れたらまず転送モード確認したいですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?