Why is website using a different version of PHP to localhost?Using IIS Server instead of IIS Express in Visual Studio 2015How can I prevent SQL injection in PHP?What are the correct version numbers for C#?Deleting an element from an array in PHPDifference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?How do you parse and process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Reference - What does this error mean in PHP?Why shouldn't I use mysql_* functions in PHP?How to download Visual Studio Community Edition 2015 (not 2017)
Are there any symmetric cryptosystems based on computational complexity assumptions?
What technology would Dwarves need to forge titanium?
on the truth quest vs in the quest for truth
Lock out of Oracle based on Windows username
Why do academics prefer Mac/Linux?
Windows reverting changes made by Linux to FAT32 partion
Taylor series leads to two different functions - why?
Can more than one instance of Bend Luck be applied to the same roll by multiple Wild Magic sorcerers?
How to draw pentagram-like shape in Latex?
How would fantasy dwarves exist, realistically?
Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?
Divisor Rich and Poor Numbers
How do I balance a campaign consisting of four kobold PCs?
Does the talk count as invited if my PI invited me?
Can 2 light bulbs of 120V in series be used on 230V AC?
I just found out that my recent promotion comes with an unexpected 24/7/365 on-call status
When did Britain learn about the American Declaration of Independence?
Former Employer just sent me an IP Agreement
Will this series of events work to drown the Tarrasque?
Can the word crowd refer to just 10 people?
What color to choose as "danger" if the main color of my app is red
Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario
Why does the U.S military use mercenaries?
In Dutch history two people are referred to as "William III"; are there any more cases where this happens?
Why is website using a different version of PHP to localhost?
Using IIS Server instead of IIS Express in Visual Studio 2015How can I prevent SQL injection in PHP?What are the correct version numbers for C#?Deleting an element from an array in PHPDifference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?How do you parse and process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Reference - What does this error mean in PHP?Why shouldn't I use mysql_* functions in PHP?How to download Visual Studio Community Edition 2015 (not 2017)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am using Windows 10 and IIS 10 with Visual Studio Community 2017.
When I check the version of PHP running on localhost using http://localhost/phpinfo.php, PHP Version 7.2.7 is displayed.
However, when I use Visual Studio to run phpinfo.php from the root of a site in C:UsersusernameMy DocumentsMy Web SitesWebsite1, i.e. http://localhost:4782/phpinfo.php, PHP Version 5.3.28 is displayed.
Can anyone please tell me why Visual Studio is not using PHP version 7.2.7 like the root of localhost is and what I need to do for the website to run on PHP version 7.2.7?
I prefer IIS Manager, to cmd prompt.
EDIT -
This is answered here: https://forums.iis.net/p/1240943/2146816.aspx?p=True&t=636891739587341756
Thanks to @StingyJack in this post for the pointer: Using IIS Server instead of IIS Express in Visual Studio 2015
php visual-studio iis webmatrix-3
add a comment |
I am using Windows 10 and IIS 10 with Visual Studio Community 2017.
When I check the version of PHP running on localhost using http://localhost/phpinfo.php, PHP Version 7.2.7 is displayed.
However, when I use Visual Studio to run phpinfo.php from the root of a site in C:UsersusernameMy DocumentsMy Web SitesWebsite1, i.e. http://localhost:4782/phpinfo.php, PHP Version 5.3.28 is displayed.
Can anyone please tell me why Visual Studio is not using PHP version 7.2.7 like the root of localhost is and what I need to do for the website to run on PHP version 7.2.7?
I prefer IIS Manager, to cmd prompt.
EDIT -
This is answered here: https://forums.iis.net/p/1240943/2146816.aspx?p=True&t=636891739587341756
Thanks to @StingyJack in this post for the pointer: Using IIS Server instead of IIS Express in Visual Studio 2015
php visual-studio iis webmatrix-3
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52
add a comment |
I am using Windows 10 and IIS 10 with Visual Studio Community 2017.
When I check the version of PHP running on localhost using http://localhost/phpinfo.php, PHP Version 7.2.7 is displayed.
However, when I use Visual Studio to run phpinfo.php from the root of a site in C:UsersusernameMy DocumentsMy Web SitesWebsite1, i.e. http://localhost:4782/phpinfo.php, PHP Version 5.3.28 is displayed.
Can anyone please tell me why Visual Studio is not using PHP version 7.2.7 like the root of localhost is and what I need to do for the website to run on PHP version 7.2.7?
I prefer IIS Manager, to cmd prompt.
EDIT -
This is answered here: https://forums.iis.net/p/1240943/2146816.aspx?p=True&t=636891739587341756
Thanks to @StingyJack in this post for the pointer: Using IIS Server instead of IIS Express in Visual Studio 2015
php visual-studio iis webmatrix-3
I am using Windows 10 and IIS 10 with Visual Studio Community 2017.
When I check the version of PHP running on localhost using http://localhost/phpinfo.php, PHP Version 7.2.7 is displayed.
However, when I use Visual Studio to run phpinfo.php from the root of a site in C:UsersusernameMy DocumentsMy Web SitesWebsite1, i.e. http://localhost:4782/phpinfo.php, PHP Version 5.3.28 is displayed.
Can anyone please tell me why Visual Studio is not using PHP version 7.2.7 like the root of localhost is and what I need to do for the website to run on PHP version 7.2.7?
I prefer IIS Manager, to cmd prompt.
EDIT -
This is answered here: https://forums.iis.net/p/1240943/2146816.aspx?p=True&t=636891739587341756
Thanks to @StingyJack in this post for the pointer: Using IIS Server instead of IIS Express in Visual Studio 2015
php visual-studio iis webmatrix-3
php visual-studio iis webmatrix-3
edited Mar 26 at 12:16
DaniB
asked Mar 23 at 17:02
DaniBDaniB
961217
961217
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52
add a comment |
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316218%2fwhy-is-website-using-a-different-version-of-php-to-localhost%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316218%2fwhy-is-website-using-a-different-version-of-php-to-localhost%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
IIS allows multiple PHP versions for different sites, so you need a tool like PHP Manager to select what version you want, github.com/phpmanager/phpmanager/releases
– Lex Li
Mar 23 at 17:16
Thanks for you replies. I’m using Windows 10 and IIS. Not Ubuntu or Apache. I’m aware I’m running multiple versions of PHP. I’ve been looking into this on and off for 2 days now. I suppose I need to know why PHP version 5.3 is used when the site runs in Visual Studio Community 2017, but the root of localhost shows PHP v7.2. I need to update a Joomla site so it works on PHP v7.2 and I can’t do it until I get this resolved.
– DaniB
Mar 23 at 17:50
Thanks @Lex Li. But, won't PHP Manager just change the PHP version at localhost though? It doesn't answer the question of why different versions are being used.
– DaniB
Mar 23 at 17:52