View difference between Paste ID: q6kUzWDt and SERmAPbF
SHOW: | | - or go back to the newest paste.
1
<?php
2
error_reporting(E_ALL);
3
ini_set('display_errors', '1');
4
5
$ch = curl_init('https://wordpress.org/');
6
curl_setopt($ch, CURLOPT_HEADER, 1);
7
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
8
9
$output = curl_exec($ch);
10
11
curl_close($ch);
12
13
header('Content-type: text/plain');
14
15
print $output;