Good day

I want to start using php on the command line and I keep getting two errors, the first is that access is denied and the second is that xampp is not recognized as an internal or external command.

I have already set my environment variables to the php path which is ;c:\xampp\php

And I am running cmd as an administrator.

What I am actually trying to do is to start running yii apps, but I keep getting the above errors when attempting to create a new application.

Your help will be highly appreciated.

I use "php" when I try to run php commands using the xampp distribution.

For example, ignoring the path :

 C:\xampp\php\php.exe myphpfile.php

would execute the myphpfile.php script.

Hi Ewald

Sorry for the late reply, I tried that as well and it still doesn't work I should be missing out on something, but thanks a lot for your help.

Do you get some kind of error message? Did you install into that exact path?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.