PHP downloads file instead of viewing

Help, i’m going to do some project with PHP but the website downloads the file istead of viewing it. here is my project: hungry-imported-snowflake

You can’t use php with node.js.

You need to run a web server. Also it kinda beats the purpose of php if you are using nodejs. If it doesn’t have a webserver to look for get requests then it downloads, because it is not being run.

If you want to read PHP than you should run this project:

so, i’ve started another project and needed php again, how can i run a webserver without node.js?

I would reccomend remixing a project like ~hello-httpd

So when i try to remix that, It doesn’t start (or boot up). But when i remove glitch.json, it boots up; but doesn’t view the php file.

Add a character to the glitch.json and then delete the character, that should fix it.

Yeah so I created ANOTHER project but that doesn’t matter. Anyways, I didn’t get what you meant by

Can you explain what should do a little bit more detailed?

now I’m getting
Connection failed: Unknown database 'glitch'
What should I do?

Follow the directions in README.md.