Firebase Hosting with PHP

8,410 views
Skip to first unread message

Marty Hitchcock

unread,
Nov 14, 2014, 2:21:56 PM11/14/14
to fireba...@googlegroups.com
Hi,

Is there any way to use PHP with the Firebase Hosting?  I'm unfamiliar with the command line based hosting, i'm used to having a dashboard to configure things like that.

Thanks,
Marty

Chris Raynor

unread,
Nov 14, 2014, 5:52:04 PM11/14/14
to fireba...@googlegroups.com
Hi Marty

In short, no - Firebase Hosting is specifically for hosting static files so anything you upload (including PHP files) will be served up to clients precisely as it was uploaded to the server - nothing gets executed on the server. This suits single page apps that are client-code heavy well, but if you need more server-side options you will have to evaluate other options for the time being

Thanks for the interest
Chris
Engineer @ Firebase

Erik Beeson

unread,
Nov 14, 2014, 5:57:02 PM11/14/14
to fireba...@googlegroups.com
The idea with Firebase Hosting is that you use the JavaScript library to access your data, something like Angular or Ember or Knockout or just plain ol' JavaScript for your application logic, and static pages for your site.

PHP is a dynamic server-side language. You can definitely use Firebase with PHP hosting, and PHP hosting is very easy to come by, but Firebase Hosting isn't meant for server-side dynamic content (like PHP).

--Erik



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marty Hitchcock

unread,
Nov 15, 2014, 12:53:16 AM11/15/14
to fireba...@googlegroups.com
Thanks for that Chris!  That answered my question entirely.
Reply all
Reply to author
Forward
0 new messages