Add php.exe to the system environment variable-use the command line to perform quick execution

Source: Internet
Author: User
1. add PHP. EXE to the environment variable. you do not need to enter the PHP directory every time.

1. add PHP. EXE to the environment variable. you do not need to enter the PHP directory every time.

① Right-click my computer-properties-advanced-environment variables

② Locate the Path item (you may need to scroll down to find it), double-click the Path item, and add the Path of your PHP directory and class library to the end, including the preceding "; "(for example:; C: \ php \ ext)

③ Click "new" and enter "PHPRC" in "variable name", and enter php in "variable value. directory where the ini file is located (for example, C: \ php). This step is used for windows to find php. ini.

④ Restart the computer

2. common PHP. EXE commands

-R: run the PHP code.

-F: run the php file (the most used)-h: for other commands, see here

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.