5 ms·
I think it's great to point new developers to the right resources. Besides sane frameworks, there are some good starting/best practices guides to help (that are
by arien 11y ago
I think it's great to point new developers to the right resources. Besides sane frameworks, there are some good starting/best practices guides to help (that are regularly updated), such as:
http://www.phptherightway.com http://www.phptherightway.com
https://phpbestpractices.org https://phpbestpractices.org
Also, I would encourage them to look at different frameworks, not just one. It'll help if they later move onto other languages, as they'll be already exposed to different ways of doing things :)
- mattmanser 11y agoIs phptherightway up to date? I only ask as scanning it I see that it recommends IIS7 for production PHP on windows servers. Which I believe you could only get using an unpatched windows 2008 server?
- arien 11y agoI don't use PHP on Windows, so I wouldn't know. But looking at php.iis.net and the PHP docs, everything points at IIS7 (or later), so perhaps that's the considered stable/supported version?
- y4mi 11y agowhile i cant comment on the validity of their advice, i can say with certainty that it is quite up to date. after all, the last change was just 2 weeks ago... "LAST UPDATED: 2015-11-16 16:19:03 +0000" (right below their banner at the top)
- teh_klev 11y agoI work for a shared hoster and can confirm that PHP works great on IIS6 (with FastCGI add-on installed) and IIS7+.
- mattmanser 11y agoYeah, but this is what it actually says: If you need to run your production system on Windows then IIS7 will give you the most stable and best performance. So it seems to be recommending IIS7 specifically, IIS 7.5, IIS 8 and IIS 8.5 have come out since then. So it is a bit like saying you should run this software on windows vista for best performance. IIS7 is old software. I guess I'm asking, have the IIS team given up on PHP performance or is this recommendation really out of date.
- teh_klev 11y agoThat page is way out of date. There's not really much IIS does other than hand off requests to a new or already warmed up php-cgi.exe (via the FastCGI bits). The performance stuff is really more down to the PHP maintainers (though Microsoft have contributed, and continue to do so). The only pain point can be when there's a new release of PHP and you have customers who want to access MS SQL databases. This is done via Microsoft's own drivers [0] (Windows only). It's not been unknown for these driver releases to lag a bit behind PHP releases, but that said I see they're on the ball now with support for 5.6. Other than that PHP runs just as quick and as reliably on Windows as it does on our Linux shared environments (I look after both). [0]: https://www.microsoft.com/en-us/download/details.aspx?id=20098 https://www.microsoft.com/en-us/download/details.aspx?id=200...
- ewams 11y agoVery first part of the tutorial: "Use the Current Stable Version (5.6)"
- TazeTSchnitzel 11y agoYes, 7.0 isn't out yet (it's only been tagged, it comes out tomorrow). And for a while yet it might be a good idea to stick with 5.6