Run php under dos

Source: Internet
Author: User
Run php under dos
Open the command prompt cmd.exe to enter the PHP installation directory, and enter php.exe "abc. php "will execute abc in DOS. php, you can. change php to your file name. pay attention to the directory structure. I will use abc directly here. php is because abc. php and php.exe are in the same directory for convenience, you can also add the php installation directory to the environment variable PATH (right-click my computer-> Properties-> Advanced-> environment variable, if PATH exists, add your PHP installation directory to the original PATH. If PATH does not exist, create a PATH.) after adding it to the environment variable, you can enter php.exe "abc. php "(note:" abc. php "must be in the directory where your cmd is running)

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.