Well, shared hosts let you upload the PHP file via FTP (or secure FTP if lucky!) to ~/public_html and serve it without administering a server.
That’s still running on a server.
(Sorry, I guess “serverless” is not a buzzword I’ll ever understand)
That’s still running on a server.
(Sorry, I guess “serverless” is not a buzzword I’ll ever understand)