avatarDino Cajic

Summary

The provided web content describes a process for adding XAMPP PHP to Environment Variables in Windows 10 to enable the use of PHP commands in the command prompt.

Abstract

The article provides a step-by-step guide for Windows 10 users on how to integrate XAMPP PHP into their system's Environment Variables. This allows for the execution of PHP commands directly from the command prompt. The process involves accessing the System Properties, editing the Path variable, and navigating to the XAMPP PHP directory to add it to the system's PATH. Once completed, users can verify the PHP version by running php -v in the command prompt. The article also introduces the author, Dino Cajic, who has a professional background in IT and software engineering, and invites readers to connect with him on various platforms and subscribe to his Medium publication. Additionally, readers are encouraged to try out an AI service called ZAI.chat, which is presented as a cost-effective alternative to ChatGPT Plus (GPT-4).

Opinions

  • The author believes that adding XAMPP PHP to Environment Variables is beneficial for users working with PHP on Windows 10.
  • Dino Cajic is positioned as an authority in the IT field, with a decade of experience and a leadership role in multiple companies.
  • The article promotes the idea that using the recommended AI service, ZAI.chat, is a more affordable option for users interested in AI technology, offering similar performance to ChatGPT Plus at a lower cost.

Add XAMPP PHP to Environment Variables in Windows 10

If you’re using XAMPP on your Windows 10 machine, and would like to add the php command so that it’s usable in command prompt, you’re in the right place.

Start by typing in Environment Variables in your Search and click on the Edit the system environment variables result.

In the System Properties window click Environment Variables. Make sure that you’re on the Advanced tab.

Scroll down to the Path variable and click Edit.

Click on the Browse button.

Navigate to C:/xampp/php and click OK.

You will now see the path to php inside the window. Click OK to exit.

Restart your Command Prompt window if it’s open and type in:

php -v

You should see the PHP version being displayed.

You can now use php from CMD.

Read this article and others on my website:

Dino Cajic is currently the Head of IT at LSBio (LifeSpan BioSciences, Inc.), Absolute Antibody, Kerafast, Everest BioTech, Nordic MUbio and Exalpha. He also serves as the CEO at MyAutoSystem. He has over a decade of software engineering experience. He has a B.S. in Computer Science and a minor in Biology. His background consists of creating enterprise level e-commerce applications, performing research based software development, and facilitating the spread of knowledge through writing.

You can connect with him on LinkedIn, follow him on Instagram, or subscribe to his Medium publication.

Read every story from Dino Cajic (and thousands of other writers on Medium). Your membership fee directly supports Dino Cajic and other writers you read. You’ll also get full access to every story on Medium.

Xampp
Environment Variables
PHP
Cmd
Command Prompt
Recommended from ReadMedium