News for hackers. Stuff that matters.
Re:Ghost Blogging Software ported to PHP by shadowmint on Tuesday February 04, 2014 @09:54AM (#7177722)
> Currently we are working on the admin interface

What? Why is there no mention of the live markdown preview. That's what ghost is.

Don't tell me how you've written a database layer, and I can have access to the stupid ghost themes marketplace. I really don't care remotely about that; wordpress has themes. And it talks to a database.

Tell me how you've got an amazing markdown php library with a websocket connection that streams live updates, or even better, how you've made that into a component you can drop into any php website.

-__-

Re:Ghost Blogging Software ported to PHP by techvibe2 on Tuesday February 04, 2014 @09:59AM (#7177763)
That is really a good point. I haven't written any markdown parser in PHP. There are several Markdown parsers written in JavaScript. I use one of them. Ospari don’t need any web socket connection. The posts are parsed and auto saved as you type and you have a live preview like Ghost.
Re:Ghost Blogging Software ported to PHP by pilif on Tuesday February 04, 2014 @10:34AM (#7178025)
There are markdown parsers available for PHP (http://michelf.ca/projects/php-markdown/ as an example), but the websocket thing might be quite challenging. PHP's architecture doesn't lend itself well for many concurrent long-running connections.

Unless you want to run out of RAM very quickly, you are much better off to do everything involving long-running connections using node.js or any other environment that works in an event based fashion as threads (and in case of most safe PHP architectures, usually processes) are way too expensive for that.

Re:Ghost Blogging Software ported to PHP by techvibe2 on Tuesday February 04, 2014 @10:41AM (#7178079)
You are right about the PHP architecture. As wrote there is no need for web socket. You can parse the markdown code in browser.
Re:Ghost Blogging Software ported to PHP by korzun on Tuesday February 04, 2014 @11:25AM (#7178391)