almost Easy methods to know if PHP is put in on Home windows? will lid the newest and most present advice as regards to the world. entry slowly fittingly you perceive with ease and accurately. will addition your information effectively and reliably
PHP is powering lots of of internet sites and internet functions everywhere in the world, and though it’s most frequently used on Linux, we are able to additionally set up PHP on Home windows 11 or 10. Nevertheless, after finishing the setup or deploying any new model of PHP, it’s important to seek out out which model of PHP is definitely operating in your Home windows system.
It helps to verify that the online utility we’re utilizing on our Home windows desktop or server has actually met the PHP necessities it wanted.
On this fast tutorial, we’ll uncover the best way to test the model of PHP operating on our Home windows utilizing the command line.
Easy methods to test the model of PHP in Home windows 10 or 11
Earlier than following the tutorial, make certain PHP has been efficiently configured in your Home windows system. Apart from that you just want a command immediate or terminal entry. Should you do not have already got this programming language in your system, take a look at our tutorial on the way to set up PHP on Home windows utilizing the command immediate.
Examine PHP model utilizing Command Immediate or Powershell
The very best and best technique to establish the model of PHP put in is by utilizing its command line instrument. Nevertheless, to make use of, the consumer should have entry to Home windows command line functions reminiscent of CMD.
Gonna Home windows 10 or 11 search field and sort CMD or Powershell. You should use any of them. When the icon seems on any of those instruments, click on on it to run.
execute the given
php command that may enable you test the model of PHP put in on Home windows 10/11 or another version you might be utilizing:
The above command isn’t restricted to Home windows solely, even customers of different working methods like Linux or MacOS can use it. As you run the syntax, you may be given the model and technical particulars in return.
Nevertheless, the command will solely present the default model on the system, not all obtainable ones, you probably have put in a number of.
PHP isn’t acknowledged as an inside or exterior command
Generally in case you run the php-v and I get an error saying PHP isn’t acknowledged as an inside or exterior command on the Home windows or PowerShell immediate, almost certainly the put in PHP location isn’t added to your system path.
So first, open C drive and discover out the PHP path. By default, will probably be:
C:Program Filesphpphp.exe nevertheless, we now have used the collided to put in it, due to this fact our default path is
After getting confirmed the placement, open the system variables window. For that, go to the search field and sort: Edit system surroundings variables.
Click on on it as the choice is obtainable within the search end result.
quickly the System properties it’s going to open, right here it’s important to click on about him “Surroundings Variables…” button.
Choose the Path within the System Variables space and click on the edit button for extra choices so as to add the PHP put in folder path in your Home windows.
Lastlyclick on on the Browse button and browse to the folder the place the PHP is situated.
After discovering the folder, choose it and press the button OK button.
Now, open Command Immediate or PowerShell to run the widespread
php -v Command to show model associated particulars.
I hope the article very almost Easy methods to know if PHP is put in on Home windows? provides perspicacity to you and is helpful for complement to your information