Skip to content

Instantly share code, notes, and snippets.

@xqus
Last active December 11, 2015 09:38
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 xqus/4580825 to your computer and use it in GitHub Desktop.
Save xqus/4580825 to your computer and use it in GitHub Desktop.
<?php
$opts = array(
'http' => array(
'method' => "GET",
)
);
$context = stream_context_create($opts);
$fp = fopen("http://www.example.com/", "rb", false, $context);
print_r(stream_get_meta_data($fp));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment