Home > Net >  How to link plain html with plain php without downloading the file
How to link plain html with plain php without downloading the file

Time:12-22

I want to link plain html (no apache, no xampp) with plain php without downloading the php file. Is this possible?

In the future I want to link my website with a database using mySQL but now it just downloads the php file.

CodePudding user response:

Is this possible?

...no, to execute PHP (via a web page) you need a webserver which is set up with the PHP interpreter installed too. It's not clear why you want to avoid that.

The solution is to just install XAMPP (or similar) and get on with your task. You'll need that as well anyway when you come to start working with a database.

  • Related