【已验证】php文件 文档格式 windows格式 unix格式 mac格式

 更新时间:2018年1月27日 15:10  点击:335

问题描述:

今天给网站搬迁服务器,从windows服务器搬迁到Linux格式

结果出现问题,php文件都不能正常运行

现象是感觉所有php没有换行了,都合在一起



<?php
error_reporting(E_ALL ^ E_NOTICE);
define('InEmpireCMS',TRUE);
define('ECMS_PATH',substr(dirname(__FILE__),0,-7));
define('MAGIC_QUOTES_GPC',function_exists('get_magic_quotes_gpc')&&get_magic_quotes_gpc());
define('STR_IREPLACE',function_exists('str_ireplace'));
$ecms_config=array();

解决办法:

在notepad++

编辑-->文档格式转换-->转换为unix格式

[!--infotagslink--]

相关文章