Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Calling an API with JSON

    I need to create a PHP file that calls an API in JSON format. I tried using the following code and when I launch the page in my browser I get a missing plug-in message followed by plug-in cannot be found. Please help!

    <div class="sidebar_1_col" id="*****_wrapper">
    <a href="*****" target="_blank"><h2>*****</h2></a>

    <div class="sidebar_1_col_top" id="*****_top"></div>
    <div class="sidebar_1_col" id="*****_feed">

    <embed src="http://www.*****.com/api/users/******/photos/?limit=20" height="245" width="224">

    <div class="sidebar_1_col_bottom" id="*****_bottom"></div>

  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 Posts
    How is this a PHP issue?
    If your browser itself is triggering errors, that would be a Javascript issue. If your HTML includes errors, that would be a PHP trigger. But from what you have here, this is definitely a client side issue.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  3. Users who have thanked Fou-Lu for this post:

    bauchrednera (06-17-2010)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts