proc nesnasim PHP :D
  1. BASH (cgi):
  2. echo "<p><strong>Stav:</strong><span style="font-size:12px">" $(curl "http://netlab.cz/status/?jid=foo@bar&type=var") "</span></p>"
  3.  
  4.  
  5. PHP:
  6. <p>Stav: <strong>
  7. <?php
  8. $url = "http://netlab.cz/status/?jid=foo@bar&type=var";
  9. $curl = curl_init();
  10.  
  11. curl_setopt($curl, CURLOPT_URL, $url);
  12. curl_setopt($curl, CURLOPT_HEADER, false);
  13. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  14.  
  15. $output = curl_exec($curl);
  16.  
  17. curl_close($curl);
  18.  
  19. echo $output;
  20. ?>
  21. </strong>
  22. </p>
Parsed in 0.008 seconds