Created
July 6, 2011 06:56
-
-
Save Takazudo/1066700 to your computer and use it in GitHub Desktop.
simulate delayed json response with php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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