7th
SEP

Windows下开发的PHP项目转移到Liunx下几点总结

Posted by JCLee under 技术

最近在做PHP项目,由于开发环境是Windows,实际运行环境为Linux。
从开发的Windows转移到Linux,发生很多的错误。
现总结如下:
1.大小写问题。Linux区分大小写。所以Windows开发的时候,大小写一定要准确。DW建立项目的时候,可以将“区分大小写”的选项选中。

2.目录及文件权限。Linux权限很严格,Windows开发却基本不用考虑目录及文件权限,转移到Linux下,需要考虑到各文件及目录的权限,进行设置。

3.PHP文件需以二进制上传。实践过多次,PHP文件,如果以文本形式上传很容易出问题。另像很多用Zend加密的PHP文件,就必须以二进制上传,才可以正常运行。

4.PHP项目所产生的缓存文件最好删除。Windows下开发中所产生的缓存文件,最好在上传Liunx之前,先删除。否则容易产生问题。

以上是这几天的项目经验,后面如有增加,会不断补充。

猜测您可以感兴趣的内容:

Reader's Comments

  1. linki sponsorowane |

    I like this web site because so much useful stuff on here : D.

  2. adult video on demand |

    There has been a long list of todo’s in my iteranary daily, but I really make it a point to come back here and read a few of your entries. Engaging and highly recommended, you’re one of the greatest you can find.

Leave a Reply


Spam Protection by WP-SpamFree

This site is protected by WP-CopyRightPro