Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMarty Hitchcock
13,108 Pointsunderstanding cURL and PHP on Firebase
Hi,
After recently completing the new JavaScript course on Treehouse I was comfortable enough to learn how to use Firebase with JavaScript which is great. However for what I want to achieve I also need to interact with Firebase using PHP. Using JavaScript was relatively easy to learn because their client side documentation is also written in it.
What has stumped me is trying to learn it for a server side language, in particular PHP as all of that documentation is in something called cURL. A link to what I am talking about: https://www.firebase.com/docs/rest/guide/understanding-data.html
Can anyone either tell me if there is anything on Treehouse that covers cURL or give me a brief run down on about it at least?
3 Answers
Ken Alger
Treehouse TeacherMarty;
cURL is a command line tool used for getting or sending files utilizing a URL syntax. I have not seen anything on Treehouse in terms of courses exactly, but I would take a look at the PHP: cURL - Manual for additional information along with a list of cURL functions supported in PHP since 4.0.2.
Post back with additional questions.
Ken
Brad Woods
13,772 PointsDid you find out how to interact with firebase using php with cURL? I'm attempting the same thing and not getting anywhere.
Marty Hitchcock
13,108 PointsTo be honest I just changed my approach and went with pure JS instead of a combination of JS and PHP. I would recommend trying that if it is applicable to you.
Brad Woods
13,772 PointsI'm using AngularJS and would love to stick to JS but I require the ability to upload files through the website. Angular's file uploading is very difficult to figure out, php's is easy. The problem I'm having is communicating from php to firebase.
Marty Hitchcock
13,108 PointsMarty Hitchcock
13,108 PointsThanks Ken, I will take a look through that and try figure it out.