which version of php am i running

Problems with the Windows version of XAMPP, questions, comments, and anything related.

which version of php am i running

Postby leonpowell » 09. May 2018 14:58

Hi,
When I run the phpinfo script through the localhost/phpinfo.php it tells me that i am using 7.1.11 but when i type php --version at the cmd line it tells me that i am using 5.6.21. I am trying to install symfony 4 and this 5.6.21 seems to be a problem. Can anyone advise?

cheers
leonpowell
 
Posts: 4
Joined: 09. July 2016 17:57
XAMPP version: 5.6.23
Operating System: windows 8.1

Re: which version of php am i running

Postby Altrea » 09. May 2018 17:09

php --version will only give you the correct anser if you are in the php bin folder, otherwise it can be possible that another php installation which adds its folders to the windows PATH variable will answer that request,
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: which version of php am i running

Postby leonpowell » 10. May 2018 09:20

Cheers Altrea,

Checked my environmental variables set for prev version of xampp. Updated path and now it shows php 7.1.11 on command line and symfony installs as i want it too.

Thanks for the reply

All the best
leonpowell
 
Posts: 4
Joined: 09. July 2016 17:57
XAMPP version: 5.6.23
Operating System: windows 8.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests