Skip to content

Instantly share code, notes, and snippets.

@divinity76
Last active August 29, 2015 14:16
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 divinity76/b25b1ecea9c5f08f1a1f to your computer and use it in GitHub Desktop.
Save divinity76/b25b1ecea9c5f08f1a1f to your computer and use it in GitHub Desktop.
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
echo '<pre>';
ob_start();
var_dump('$_GET',$_GET,'$_POST',$_POST,'$_COOKIE',$_COOKIE,'$_FILES',$_FILES);
echo htmlentities(ob_get_clean(),ENT_SUBSTITUTE).'</pre>';
?>
<form action="?">
<input type="file" name="files[]" >
<input type="file" multiple name="files[]" >
<input type="submit" value="Submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment