I make a small website with 2 pages: index.html and page2.php, the index.html contains a button, after clicking on the button, it runs the page2.php code. It works fine locally, but after hosting it on firebase, it download the page2.php file instead of executing it. Please let me know what may be the source of the problem?
Asked
Active
Viewed 41 times
0
-
Check permalink of the button. – Ashis Kumar Jun 27 '23 at 08:21
-
1What do you mean by _"hosting it on firebase"_? As far as I can tell, Firebase Hosting only serves static content. – user1191247 Jun 27 '23 at 08:39
-
I host the website on Firebase, Firebase offers hosting feature – Aya Khalifeh Jun 27 '23 at 09:05
-
@AyaKhalifeh But does Firebase Hosting also offer PHP for dynamic pages? – brombeer Jun 27 '23 at 09:19
-
`Firebase offers hosting feature`...sure, but there are many different kinds of hosting, which provide many different features. Not all "hosting" provides support for PHP. This is something you need to check _before_ deploying your site to any particular hosting environment. – ADyson Jun 27 '23 at 12:14