5 ms·
What does it even mean to run PHP in the browser... Is this supposed to be some sort of replacement for server-side PHP?
by mizzao 4y ago
What does it even mean to run PHP in the browser... Is this supposed to be some sort of replacement for server-side PHP?
- franky47 4y agoSkip React/Vue/Svelte/next week's JS framework and client-side render your app directly in PHP, genius. /s
- have_faith 4y agoThis just replaces the frontend framework written in JS with a frontend framework written in PHP compiled via wasm. It doesn't eliminate the need for something to manage views and state on the front end, as that's where you're executing all of your code now?
- franky47 4y agoYes indeed. The sarcasm may have been lost in my reply, running PHP in the browser is a great feat of engineering, but not a practical one.
- have_faith 4y agoIt's rare that I don't discern sarcasm, my bad!
- zelphirkalt 4y agoJust wait what things on top of that WP-PHP people will come up with. This thing will blind enough people with the looks of "modern and shiny", that they might create something similarly vulnerable and mistake prone to original WP plugins. I mean, someone must be writing these plugins ... shudders
- cylinder714 4y agoIt's an awesome hack, though. "Approved!"
- laundermaf 4y agoFirst thing that came to mind is that I could load this up on a static host, saving content in a local SQLite (or even in SQLite in S3), make changes and then export the results to S3 as static HTML files. All without ever running any PHP/SQL host. One could technically upload this to GitHub Pages. Endless possibilities!
- 0xChain 4y agoI was thinking the exact same, but with Cloudflare Pages in order to use the WAF to see if it may help thwart any PHP-related vulns
- paulryanrogers 4y agoWhat kind of download size though?
- adamziel 4y agoI already did! https://adamziel.github.io/index.html https://adamziel.github.io/index.html https://adamziel.github.io/tutorial.html https://adamziel.github.io/tutorial.html It also lives on netlify: https://fanciful-gnome-a4edc4.netlify.app/ https://fanciful-gnome-a4edc4.netlify.app/