windows - php breaks with cr and lf mismatches -


when upload php files i'm getting weird issues whereby php files have cr+lf eol characters, have cr , have lf.
i'm using win8, filezilla, notepad++ , phprunner templated work (all stored in dropbox synced folder). use phprunner ftp files across , filezilla when i'm working on handcrafted php files.

when go open files in notepad++ seems these line endings change on own , need go notepad++->edit-eol conversion change them unix style only.

so wouldn't bother me (apart being bit odd how randomly change) in php appears if require_once file has different line endings fails silently , nothing works. question

1) expected behaviour of php, , if there way accept different eol encodings in same source file?

2) ideas why eol characters may being changed? filezilla, notepad++ or dropbox or phprunner tinkering? (when have files open never see notifications of them changing, happens on restarting computer)

it's bit of puzzle thought i'd ask if else may have encountered this

any number of applications change line endings; considered useful behavior in many contexts. ftp programs (etc.) have options convert text files when transfering across systems. ftp's "ascii" mode, default text files, enables automatic conversion. if end uploading files conversion , without, end inconsistent collection.

notepad++ might doing it; don't use can't say. worst programs insert preferred line endings only lines touch, leaving file inconsistent line endings. sounds you've been spared that, @ least.

in short: check settings of every tool touches file, starting notepad++.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -