Skip to content

Instantly share code, notes, and snippets.

@round
Created December 3, 2018 01:16
Show Gist options
  • Select an option

  • Save round/1f609d19289b704f71365fff5911165c to your computer and use it in GitHub Desktop.

Select an option

Save round/1f609d19289b704f71365fff5911165c to your computer and use it in GitHub Desktop.

Revisions

  1. round created this gist Dec 3, 2018.
    9 changes: 9 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php
    //header('Content-Type: application/atom+xml');
    $url='http://example.com';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    $output = curl_exec($ch);
    echo $output;
    curl_close($ch);