Skip to content

Instantly share code, notes, and snippets.

@kiang
Created June 25, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiang/187cd00947e73863a7bbdc32dc86e735 to your computer and use it in GitHub Desktop.
Save kiang/187cd00947e73863a7bbdc32dc86e735 to your computer and use it in GitHub Desktop.
curl looping
<?php
while(true) {
$curl = exec("curl ...");
$json = json_decode($curl);
print_r($json);
sleep(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment