The title is the same php, for example, I started in incloudconfig. phpwebinclude_once & #039; configconfig. php & #039; in dos, it must be changed to include_once & #039; configconfig. php & #039; the key point is that the boss asks "the same support can be run either on the web or under dos... the title is the same php
For example, at the beginning of incloud config. php
Web
Include_once 'config/config. php ';
In dos, it must be changed
Include_once 'config \ config. php ';
The key point is that the boss asked "the same team can run either on the web or under dos ."
This php is mainly used to open archives.
My path settings are similar to "/", "\". How can I run a job in a different environment?
Reply content:
The title is the same php
For example, at the beginning of incloud config. php
Web
Include_once 'config/config. php ';
In dos, it must be changed
Include_once 'config \ config. php ';
The key point is that the boss asked "the same team can run either on the web or under dos ."
This php is mainly used to open archives.
My path settings are similar to "/", "\". How can I run a job in a different environment?
Http://stackoverflow.com/questions/6654157/how-to-get-a-platform-independent-directory-separator-in-php
Use PHP built-inDIRECTORY_SEPARATOR
Variables are used as separators.
It should be said that in cmd