Hacker News new | ask | show | jobs
by robbiejs 1280 days ago
I am using old school php like this:

``` <?php include('header.inc.php'); <?php include SOME PAGE BASED ON URL ?> <?php include('footer.inc.php'); ```

And <script> tags of course, with vanilla JS. Super quick and reliable. No layers.

3 comments

I use this on a current project as well. I have a (python) scraper that scrapes some data, and the PHP queries the database and displays the data. No JS, even.

To answer OP's sibling question, I don't do any authentication with projects I consider lightweight.

This seems great for ultra lightweight applications. Do you ever lean into a framework for more advanced functionality? I don't think I'd ever want to handle user 2fa authentication in a <script> tag for example.
I havent had projects with auth, so i wont know if php or js is a good fit.
You're so uncool.

(:

Well thank you, I take it as a compliment