Apache-How to use PHP commands in the global

Source: Internet
Author: User
I'm win7, PHP environment built with XAMPP (installation path F:/XAMPP)
To make it easy to use PHP commands directly in the global
I threw the php.exe under the f:/xampp/php down to Windows/system32.
However, the PHP command is still not available in the console and must be CD-to-f:/xampp/php.

Reply content:

I'm win7, PHP environment built with XAMPP (installation path F:/XAMPP)
To make it easy to use PHP commands directly in the global
I threw the php.exe under the f:/xampp/php down to Windows/system32.
However, the PHP command is still not available in the console and must be CD-to-f:/xampp/php.

Add the php file path to the environment variable path.

setx PATH "%PATH%;你的PHP文件夹路径"

Once added, because the CLI and CGI are not the same file when PHP is executed, it is php.ini a good idea to execute:

php -i | findstr php.ini

Look at php.ini the location of the file.

This and PHP installed in that directory, there is no direct relationship, the PHP installation path into the environment variable can be in the computer global access.

  • 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.