Skip to content

Instantly share code, notes, and snippets.

@round
Created December 3, 2018 01:16
Show Gist options
  • Save round/1f609d19289b704f71365fff5911165c to your computer and use it in GitHub Desktop.
Save round/1f609d19289b704f71365fff5911165c to your computer and use it in GitHub Desktop.
PHP Page Proxy
<?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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment