That may be, but the point is that whatever the live server runs, the dev environment should reflect that. With the OP running XAMP it should be easy to switch PHP versions when needed.
I prefer developing with the latest version because of improved error reporting. Once the problematic remote script has been resolved locally, I find it easier to dumb down the revised script before uploading to prevent PHP version conflicts. The online version is also ready although remmed for the latest PHP version.
I much prefer my local to be as close as possible to the remote environment. I also prefer that of my team because it results in less problems when everyone is working on a stack of technologies that is not only the same but similar to the prod environment.
I’m sure it makes sense to test on the latest version, the code wants to be future-proof as much as possible. But I agree with @ZooKeeper it makes sense to try and match the live sever for the most part.
This has caught me out when you discover that a client is running something stupid like 5.2 on their server and some of your syntax doesn’t work when you upload. In such a case I may switch them to something newer, but you don’t always have that level of control.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.