Firebase index.php
我在Google Firebase上创建了项目,将所有内容完美地上传到Firebase托管网站上,但 index.php
无效,只是 index.html
.因此,我尝试通过Node.js和Admin SDK安装PHP,但仍然无法正常工作.我尝试阅读该文档,但是我是编程的初学者,而该文档使我丧命...
I create project on Google Firebase, everything goes perfect uploading my web on Firebase hosting, but index.php
doesn't work, just index.html
. So I tried to install PHP through Node.js and Admin SDK, but it still doesn't work... I tried to read the documentation, but I am a beginner in programming and this documentation kills me...
我第一次尝试: https://firebase-php.readthedocs.io/en/latest/overview.html
之后: https://firebase.google.com/docs/admin/setup#add_firebase_to_your_app
但是我不能完成它.请帮助或给我发送任何好的教程
But I cant finish it. Please help or send me any good tutorial
Firebase托管用于托管静态资产.PHP是可执行文件,因此不能在Firebase托管中使用.
Firebase hosting is for hosting static assets. PHP is executable, so it can't be used in Firebase hosting.
您提供的链接用于将Firebase 数据库与您在任何其他主机上的PHP安装一起使用.
The links you provided are to use Firebase Database with your PHP installation in any other host.