The difference between set_include_path in win and linux. I just adjusted the program. I had a good program on the server, but an error occurred when I got to win. After careful tuning, we found that it was a problem with set_include_path. In win, when you want to include multiple paths and just tune the program, the program on the server went down to win and there was an error.
After careful tuning, we found that it was a problem with set_include_path.
In Windows, if you want to include multiple paths, separate them with ";", but use ":" in linux ..
The include path setting in Zendframe is 11: 55ZF. In this example, the include_path does not work, and the existing settings are damaged. Therefore, it is better to set this:
// Include Path setting
Set_include_path (get_include_path (). PATH_SEPARATOR. _ APP_ROOT_PATH _. 'Library '. DIRECTORY_SEPARATOR. 'zf'. DIRECTORY_SEPARATOR );
Require 'zend/Loader. php ';
Get_include_path () is the current inc_path of the system.
_ APP_ROOT_PATH _ is a constant set by myself, representing the current directory.
PATH_SEPARATOR: this can be said, because the path in WIN is separated by; (semicolon), but in LINUX, it is separated by: (colon, therefore, this constant is used to represent the delimiter.
After this setting, you can use both Windows and LINUX.
Bytes. After careful tuning, we found that it was a problem with set_include_path. In win, when you want to include multiple paths...