HackNY Hackathon Starter Script
Posted in HackNY, PHP, Tips, Uncategorized, Web Development on April 8th, 2011 by j3nnings – Be the first to commentMy buddy Andrew wanted to be able to hack on something a tomorrow’s HackNY competition. He’s never used PHP before so I wrote him this file to help him make an api call and display it on a web page. I’m assuming that you’ve already got a PHP environment set up somewhere. If not, check out XAMPP.
This file is intended to give new programmers (hackathon or else) something to start hacking on quick. Of course, you would have already needed to set up PHP and a webserver.
This file just makes a simple api request and displays the response. The API for this example is embed.ly, an API for turning normal links (http://…) into embeddable widgets (video players, slideshows, etc) .
The actual code can be found here. you should copy and paste it into an index.php file in your htdocs directory (if using XAMPP).