I am a beginner in web development and am having trouble trying to figure out how to set up a CLI interpreter for PHP. I don't know what to do to set up an interpreter and the JetBrains tutorials seem to assume that I already have available interpreters.
I have previously used AWS to make websites, but I am switching to PHPStorm because my free trial has ended. From uses AWS, I did not need anything additional to run my PHP files, so now that I am using PHPStorm, I am confused by all these extra steps I need to run a PHP file. I am essentially confused with what an interpreter is, how to set it up, and how to view my webpage on my local server.
I also don't understand what the CLI is. I read it stands for Command Line Interpreter, but I don't know if that is any different than a regular interpreter.
I've read things like WAMP and XAMPP, but I don't know what they mean. I have Windows 10.
To download & install the PHP Interpreter and use it in PHPStorm :
There you've to choose between Non Thread Safe (NTS) and Thread Safe (TS) versions.
Click the "Zip" link that suit your processor architecture (x64 for 64bit, x86 for 32bit or lower).
After the downloading the file, extract the .zip archive in the directory of your choice (for example, in C:\php\)
Ctrl+Alt+S).... button from the "CLI Interpret" field.+ button.Here, provide the PHP Executable path to the php.exe we've spotted earlier (eg.: C:\php\%currentPhpVersionDir%\php.exe).
If done correctly, PHPStorm will display the PHP version & the path to the configuration file (php.ini).
That's all for linking PHPStorm to a PHP interpreter in itself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With