开发者

Zend Studio formats txt-sources after upload

Zend Studio formats txt-sources after upload.

for Ex:

&l开发者_如何学运维t;?php 
echo 'test';
echo 'test';
echo 'test';
?>

after upload this source code looks like:

<?php

echo 'test';

echo 'test';

echo 'test';

?>


Check the file line delimiter option. In both Zend Studio and Eclipse it should be in Windows->Preferences->General->Workspace

If you use unix-like server you should use:

  • text file encoding: utf-8
  • new text file line delimiter: unix

Adjust the settings based on the server your script will woork and not on the machine you are developing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜