3 ms·
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 <sc
by robbiejs 4y 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.
- jonnycomputer 4y agoYou're so uncool. (:
- robbiejs 4y agoWell thank you, I take it as a compliment
- code_lettuce 4y agoThis 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.
- robbiejs 4y agoI havent had projects with auth, so i wont know if php or js is a good fit.
- qup 4y agoI 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.