The question about the diagonal and backslash of commandphp following the web environment in dos

Source: Internet
Author: User
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_SEPARATORVariables are used as separators.

It should be said that in cmd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.