Advertisement
Shiny_

Untitled

Jul 8th, 2014
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2.     $Json_File = file_get_contents("content.json");
  3.     $Json_Object = json_decode($Json_File);
  4. ?>
  5. <!DOCTYPE html>
  6.     <html>
  7.         <head>
  8.             <?php
  9.                 echo "<title>" . $Json_Object -> content -> title . "</title>
  10.                     <link
  11.                         rel = " . $Json_Object -> content -> rel_type . "
  12.                         type = " . $Json_Object -> content -> link_type . "
  13.                         href = " . $Json_Object -> content -> link_href;
  14.             ?>
  15.         </head>
  16.         <body>
  17.             <h1>
  18.                 <?php echo "<img class = 'center' src = " . $Json_Object -> content -> image . "/>"?>
  19.             </h1>
  20.         </body>
  21.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement