Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    2
    Thanks
    1
    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>
    <div class="sidebar_1_col_bottom" id="*****_bottom"></div>
    </div>

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 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'); 

  • 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
    •