Skip to content

Instantly share code, notes, and snippets.

@findzen
Created May 21, 2012 16:58
Show Gist options
  • Save findzen/2763272 to your computer and use it in GitHub Desktop.
Save findzen/2763272 to your computer and use it in GitHub Desktop.
StorageRoom webhook test
<?php
$file = fopen( 'test.json', 'w' ) or die( 'Failed to open file' );
$json = file_get_contents( 'php://input' );
fwrite( $file, $json ) or header( 'HTTP/1.1 500 Internal Server Error' );
fclose( $file );
/* EOF */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment