Thursday | 10 OCT 2024
[ previous ]
[ next ]

PHP but in BASIC

Title:
Date: 2024-09-15
Tags:  php-basic

I think extending my templating language to be more like php might be an interesting way to create web applications.

I'm thinking something like creating a record in a file as a full path.

This would result in creating a files like:

/login
/users
/users/<username>
/user/<username>/calendar

Each record would be an interpreted template file that doesn't require a BASIC subroutine.

The GET request would be straightforward, the POST request would require some casing logic if I want to have the GET and POST in the same file.

This would remove the need of writing BASIC code and setting up routes. I could simply start writing code and doing reads and writes directly from my templating language.

This would require my templating language to probably be faster which might require me to spend some time learning about language development.