Skip to content

Instantly share code, notes, and snippets.

@Takazudo
Created July 6, 2011 06:56
Show Gist options
  • Save Takazudo/1066700 to your computer and use it in GitHub Desktop.
Save Takazudo/1066700 to your computer and use it in GitHub Desktop.
simulate delayed json response with php
<?php
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json; charset=utf-8');
sleep(1);
readfile('amazonresult.json')
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment