当我将文件上传到服务器时,换行符会以某种方式消失,我的文件会因此而改变:
<?php
$category = get_the_category();
$parent = get_cat_name($category[0]->category_parent);
// $categories = get_option_tree ('blogcategory', '');
//
// print_r($categories);exit;
//
// print_r($category);
// echo "+++++++";
// print_r($parent);
?>
<?php get_header(); ?>
<?php if ( get_option_tree ('breadcrumb', '') == "Active" ) { ?>
<div id="breadcrumb">
<div class="breadcrumbinner"><?php
if(class_exists('bcn_breadcrumb_trail'))
{
$breadcrumb_trail = new bcn_breadcrumb_trail;
$breadcrumb_trail->fill();
$breadcrumb_trail->display();
}
?>
</div>
<?php if ( get_option_tree ('twitterrss', '') == "Active" ) { ?>
<?php $rssurl = get_bloginfo('rss2_url'); ?>
<?php $rssurl2 = get_option_tree ('rssnavurl', $rssurl); ?>
.
.
.
到此:
<?php$category = get_the_category();$parent = get_cat_name($category[0]-
>category_parent);// $categories = get_option_tree ('blogcategory', '');
//
// print_r($categories);exit;
//
// print_r($category);
// echo "+++++++";
// print_r($parent);?><?php get_header(); ?><?php if ( get_option_tree ('breadcrumb', '') == "Active" ) { ?><div id="breadcrumb"><div class="breadcrumbinner"><?phpif(class_exists('bcn_breadcrumb_trail')){$breadcrumb_trail = new bcn_breadcrumb_trail;$breadcrumb_trail->fill();$breadcrumb_trail->display();}?></div><?php if ( get_option_tree ('twitterrss', '') == "Active" ) { ?><?php $rssurl = get_bloginfo('rss2_url'); ?><?php $rssurl2 = get_option_tree ('rssnavurl', $rssurl); ?><?php $twitterusername = get_option_tree ('twitternavurl', 'anteksiler'); ?><div class="twittercount"><a href="http://twitter.com/<?php echo $twitterusername; ?>"><?php twittercount($twitterusername) ?></a></div><div class="rsscount"><a href="<?php echo $rssurl2; ?>"><?php rsscount($rssurl2) ?></a></div><?php } ?><?php } else { ?><div class="clearfix"><?php } ?></div> <div id="center-archive"> <?php $categories = get_option_tree ('blogcategory', ''); ?> <?php query_posts($query_string.'&cat='.$_GET['cat']); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $image_id = get_post_thumbnail_id(); ?> <?php $image_url = wp_get_attachment_image_src($image_id,'post-image'); $image_url = $image_url[0]; ?> <?php $full_url = wp_get_attachment_image_src($image_id,'full'); $full_url = $full_url[0]; ?> <div class="" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> : <?php if (qtrans_getLanguage()=='fa') $date = jdate('Y/m/d',strtotime($post->post_date)); else $date = get_the_date('Y/m/d'); echo $date ; ?> </div> <?php endwhile; ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <?php else : ?> <?php endif; ?> </div> <?php get_sidebar(); ?> <div class="clearfix"></div> </div></div><?php get_footer(); ?>
是服务器问题还是filezilla问题?
注意:这是一个解决简短描述问题的虚拟文本:D