开发者

Not a tidy code but a mess when download files?

开发者 https://www.devze.com 2023-03-07 17:49 出处:网络
sometimes when i download files they look a horrible mess: eg. i\'ve: <?php get_header(); ?> <div class=\"art-contentLayout\">

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号