sometimes when i download files they look a horrible mess: eg. i've:
<?php get_header(); ?>
<div class="art-contentLayout">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
<div class="art-content">
.
.
.
but when i download it looks:
<?php get_header(); ?><div class="art-contentLayout"><?php include (TEMPLATEPATH . /sidebar1.php'); ?><div class="art-content">...
and sometimes because of this i get php errors. why this happens? how can i avoid of such occurences? Thanks
PS: OS: Win 7, FTPclient: Filezilla, Editor: Notepad++, text wrapping is checked in editor, and i said SOMETIMES it ha开发者_如何学Pythonppens
Read this about the history of newline characters (mostly LF vs. CRLF): http://en.wikipedia.org/wiki/Newline
In your case, you just need to find a better text editor to use that will preserve the line endings and show you the file properly.
精彩评论