Why this code is not working on linux server?

后端 未结 1 826
攒了一身酷
攒了一身酷 2021-01-14 13:33

I am new to the Zend Framework, and this code is used for downloading contents. This code is working on localhost but when I try to execute it on a linux server it shows er

相关标签:
1条回答
  • 2021-01-14 13:42

    The two typical issues I often see between local Windows (XP) dev environment and a Linux production environment are:

    1. File permissions. Linux typically has a more restrictive model of file permissions.

    2. Case-sensitivity of the filenames: Linux filenames are case-sensitive. In Windows, they are not.

    3. Different directory separator: Windows uses \, Linux uses /. The PHP constant DIRECTORY_SEPARATOR always contains the right value for the OS (thanks to @Svish).

    4. Different include path separator: Windows uses ;, Linux uses :. The PHP constant PATH_SEPARATOR always contains the right value for the OS.

    0 讨论(0)
提交回复
热议问题