joobidev

Render using CURL

Jun 3rd, 2015
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. $url = 'http://www.yourdomain.com/index.php?page=japps&controller=apps-tag&id=widget_identifier&noheader=1';
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_URL, $url);
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  6. $output = curl_exec($ch);
  7. curl_close($ch);
  8. echo $content;
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment