3 ms·
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 d
by techvibe2 13y ago
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.
- pilif 13y agoThere are markdown parsers available for PHP (http://michelf.ca/projects/php-markdown/ 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.
- techvibe2 13y agoYou are right about the PHP architecture. As wrote there is no need for web socket. You can parse the markdown code in browser.