0

I have a directory containing index.php, header.php and footer.php, and I want to deploy this directory in firebase, BUT without using cloud/database features (only firebase deployment). In fact, in my index.php, there are only two PHP tags that are both header and footer inclusions. To do this, my tutor gave me a tip: before writing "firebase deploy", I have to do a PHP command with the > operator. For example, something like "php -S localhost:8000 > ...". Does anyone have an idea?

0

1 Answer 1

1

Firebase won't allow to run PHP Code please check hosting documentation here https://firebase.google.com/docs/hosting/. If you want to run api you can try using nodejs express please refer this doc https://firebase.google.com/docs/hosting/functions.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.