News for hackers. Stuff that matters.
Re:PHP 7 Released by arien on Wednesday December 02, 2015 @06:43AM (#10662378)
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 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 :)

Re:PHP 7 Released by mattmanser on Wednesday December 02, 2015 @07:03AM (#10662435)
Is 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?

Re:PHP 7 Released by arien on Wednesday December 02, 2015 @07:20AM (#10662494)
I 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?
Re:PHP 7 Released by teh_klev on Wednesday December 02, 2015 @09:31AM (#10663098)
I work for a shared hoster and can confirm that PHP works great on IIS6 (with FastCGI add-on installed) and IIS7+.
Re:PHP 7 Released by mattmanser on Wednesday December 02, 2015 @10:01AM (#10663297)
Yeah, 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.

Re:PHP 7 Released by teh_klev on Wednesday December 02, 2015 @03:39PM (#10665630)
That 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=200...

Re:PHP 7 Released by y4mi on Wednesday December 02, 2015 @09:25AM (#10663060)
while 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)

Re:PHP 7 Released by ewams on Wednesday December 02, 2015 @08:39AM (#10662824)
Very first part of the tutorial: "Use the Current Stable Version (5.6)"
Re:PHP 7 Released by TazeTSchnitzel on Wednesday December 02, 2015 @09:51AM (#10663226)
Yes, 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