Live data from Hacker News

WordPress on .NET

peachpie.io

81–90 of 174 posts

Re: WordPress on .NET

#81
post #7

Running PHP and indeed WordPress on the .NET CLR seems like a great way to eliminate a whole tranche of bugs/vulnerabilities in one swoop. Respect.

How so? A PHP runtime running WP on .NET needs to be bug-for-bug compatible with the real thing (and I've heard early PHP APIs aren't exactly a paragon of API design).

Also, why would php-on-net be updated more often than one of the most used runtimes on the web?

Re: WordPress on .NET

#82

I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.

I would suggest a number of other languages you could consider that are better languages than PHP.

https://en.wikipedia.org/wiki/List_of_CLI_languages

Re: WordPress on .NET

#84

Earlier quoted context omitted.

WordPress security is complex. The core code is OK, security wise. Comparible to similar projects, I guess. The two major issues are that typically PHP runs with permission to modify the WordPress directory, which is useful for automatic upgrades, but means any exploit in any plugin, theme, etc. instantly becomes, "can replace WordPress". The other is that all themes and plugins are completely unsandboxed, and the qu…

> OK, security wise Since when is implementing your own home-grown shitty replacement for parameterised queries "OK"?

Since you need to support versions of PHP that don't support the extensions that have parameterized queries.

Re: WordPress on .NET

#85
post #67

Earlier quoted context omitted.

On Azure, without Opcache enabled. That's not a very good comparison.

While I do know that Azure is owned by Microsoft I'm not so sure on why it's such a valid argument. In the end it's not like they're actively trying to ruin languages other than C# on their servers? Especially since that would ruin it for a lot of customers?

I would guess that .NET is more optimised on Azure, whereas PHP is not. So you're comparing an optimised installation of .NET against an unoptimised installation of PHP. In general, a benchmark saying "compares various metrics" is pretty meaningless.

Re: WordPress on .NET

#86

Earlier quoted context omitted.

Didn't they start with it and migrate away?

They use something called HHVM, which is a PHP compiler. http://hhvm.com/

And Hack, their language for HHVM that's basically "static types bolted on to PHP".

http://hacklang.org

Re: WordPress on .NET

#87
post #84

Earlier quoted context omitted.

> OK, security wise Since when is implementing your own home-grown shitty replacement for parameterised queries "OK"?

Since you need to support versions of PHP that don't support the extensions that have parameterized queries.

Except… you don't?

> WordPress also works with PHP 5.2.4+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities

> PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0

Unless you mean "hosts that disabled PDO"… I think they can safely be ignored.

Re: WordPress on .NET

#89
Several years ago I used to run a WordPress blog on IIS 7 using FastCGI. The performance wasn't great but acceptable for a small blog. Wonder how this compares.

Re: WordPress on .NET

#90

Earlier quoted context omitted.

I think you might be the first case I've heard of of someone wanting to go from .NET to PHP.

We literally spend millions on licensing Share Point to do what WordPress can do much better and easier. I'm not saying we're going to start writing everything in PHP, but being able to experiment with WP could affect the bottom line in a big way.

I would look at sitecore. It's still .net, but it is closer to wordpress in that you wouldn't necessarily build a sharepoint in it, but you can build pretty much anything else in it.

Disclaimer, I work on the UX/UI side of a company that focuses solely on sitecore.

Post reply on HN