Screencast Build a Badge Viewer App With PHP PHP

  • Hampton Paulk


  1. bryantricart2 said

    The 'Try PHP' course was great! Can't wait to see a Symfony Framework course!

  2. jhzhou said

    how to get the json data, when I type json at the end of page address. Just shows {"status":"500","error":"Internal Server Error"}

  3. Faculty

    Jon Friskics said

    @jhzhou you've got to make your report card public in order to be able to access it as JSON by adding .json to the end. If you navigate to your report card there's a "Make Public" button at the top right of the page.

  4. Tapaalak said

    Hi, you should indicate this on the video as I spend a lot of time to find this requirement.

  5. Nicklas Bach Andreasen said

    Hi! I must admit, I've been waiting for PHP to come out, and it went out very well. By watching the video, I can see that your .json and local file at the start is listed, mine is just a big mess. I can also see, that you have som chrome extensions, which I think could be an answer to my prayer, but what are the extensions?

  6. Faculty

    Hampton Paulk said

    @Nicklasbach02, make sure that your report card is public

  7. Aziz Tovbaev said

    the css file doesn't have the same styling with local xampp server, but the file has the same styling as in the screencast when it's deployed into Heroku. This is another challenge !

  8. nirsegev said

    Nicely done!

  9. Nazar Tokar said

    Great session! Waiting for further php lessons!

  10. Jessie Valladares said

    how is this thing works, im new to php

  11. MonteSa said

    After writting the first two lines of code: $data = file_get_contents(''); var_dump($data); I get an error: Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\AppServ\www\ejerciciosphp\index.php on line 3

    Warning: file_get_contents(): Failed to enable crypto in C:\AppServ\www\ejerciciosphp\index.php on line 3

    Warning: file_get_contents( failed to open stream: operation failed in C:\AppServ\www\ejerciciosphp\index.php on line 3 bool(false) Previously, I uncomment extension = php_openssl.dll in php.ini
    in order to solve another error, that said I had forgotten to enable wrapping https. But I cannot fix this one by myself. I have php 5.6, Aptana, Appserv. I am stuck. Thanks for the help

  12. eling said

    How did you unminify the json data @ 6:22?

  13. MonteSa said

    Hello again, I tried to solve it inserting openssl.cafile=/usr/local/etc/openssl/cert.pem in Now return these errors: failed loading cafile stream: `/usr/local/etc/openssl/cert.pem' Failed to enable crypto failed to open stream Apreciate some advice to keep on. Thanks

  14. Camilo Riviere said

    It would be nice if the links for the requirements opened up in a new tab.

  15. David Mellor said

    Great video! I followed it step by step but for some reason my css files wouldn't apply to my page, so I just had one big list of courses with resized image files. I even forked the repo from github and copied across the css and image folders from there into my atom project, and it still didn't work. I've also copied and pasted the exact html/php code from the repo (whilst keeping my own badges linked in) and this didn't change anything, so I know my written code has no errors in it. Please can you help?

    Thanks! :-)

  16. Denver Prophit Jr. said

    In the git add and commit, you guys should have just done git commit -a -m '...' To add and commit untracked and modified files.

  17. Dimitrios Kavadas said

    Interesting demo. A quick question, I have downloaded Chrome extensions to view json source code formatted, but on my local server it comes out unformatted and a single line of text wrapped within the window. How can get the browser to format it like I see in the demo?

  18. Rita Bradley said

    @MonteSa I had the same problem but when I made my report card public, it worked correctly.

  19. Nicholas Piaskoski said

    Totally missed anything about making one's profile public. Making that more clear would have been great. Another tip to that other may find useful is that another way to deploy this locally is to cd into your project folder and then enter '''php -S localhost:8000'''

  20. Celine3404 said

    Hello, I just completed everything and it was pretty simple to do, just one question, how do you just target a certain badge for example just the Achievement Badges?? Please help

  21. danathurston said

    Yes...biggest thing is to make your profile public. Assumed is that you have Heroku (I do but haven't used it for several years). The actual business of moving sites around is assumed. Oh, and, the json parser extension isn't working...

About This Screencast

In this episode, we will be utilizing the skills you learned in the Try PHP course to build a simple badge viewer app. We will demonstrate how to use PHP to bring in data from a JSON API to display badges and other information from your Code School profile.

You need to be an enrolled student in order to view this video and subscribe.

Enroll Now