Advertisement
sparkweb

PHP Code to Ping the Order Desk Datafeed

May 20th, 2014
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. //Ping the Order Desk datafeed
  2. $opts = array(
  3.     CURLOPT_URL => "datafeed url here",
  4.     CURLOPT_RETURNTRANSFER => 1,
  5.     CURLOPT_CONNECTTIMEOUT => 5,
  6.     CURLOPT_TIMEOUT => 5,
  7.     CURLOPT_FAILONERROR => 0,
  8.     CURLOPT_CUSTOMREQUEST => 'GET'
  9. );
  10. $ch = curl_init();
  11. curl_setopt_array($ch, $opts);
  12. $result = curl_exec($ch);
  13. curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement