最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to run PHP script in Firebase? - Stack Overflow

programmeradmin1浏览0评论

I am working on Firebase web Javascript but inside my project I want to run one PHP script, but I don't know how to run this script.

HTML

<form method="POST" action="./abcd.php">
   <input type="email" id="mc-email" name="mc-email" required/>
   <input type="submit" value="Submit">
</form>

PHP Script

<?php
   echo 'Hello World';
?>

Please kindly go through my above post and let me know how to run PHP script inside my firebase web project.

I am working on Firebase web Javascript but inside my project I want to run one PHP script, but I don't know how to run this script.

HTML

<form method="POST" action="./abcd.php">
   <input type="email" id="mc-email" name="mc-email" required/>
   <input type="submit" value="Submit">
</form>

PHP Script

<?php
   echo 'Hello World';
?>

Please kindly go through my above post and let me know how to run PHP script inside my firebase web project.

Share edited Nov 9, 2016 at 20:47 adjuremods 2,9982 gold badges14 silver badges17 bronze badges asked Nov 9, 2016 at 12:28 My ChatMy Chat 1031 gold badge3 silver badges8 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

The question is old but for new guys dealing with firebase; regarding to current docs firebase is static assets only. You can still use its realtime db, storage and auth like other helper functions and scale your project if these kind of features are okay for you.

If one want to execute some server code such as PHP,Java,.Net,Go,NodeJS google has cloud solution support these languages https://cloud.google./

You need to use the rest api of Firebase. https://www.firebase./docs/rest/quickstart.html https://github./ktamas77/firebase-php

发布评论

评论列表(0)

  1. 暂无评论