diff options
| author | root | 2014-11-10 13:58:15 +0100 |
|---|---|---|
| committer | root | 2014-11-10 13:58:15 +0100 |
| commit | 6b9e4d0310dfcfd6b780046dad76c7c4c80868b1 (patch) | |
| tree | 7a27fc2b989aae96f9eb6b67c429c8512558a4dd /function.php | |
| parent | 39cda24064c04488b2e1b07e37683c79eae67d28 (diff) | |
| download | httpheader-6b9e4d0310dfcfd6b780046dad76c7c4c80868b1.tar.gz | |
merged everything in one file
Diffstat (limited to 'function.php')
| -rw-r--r-- | function.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/function.php b/function.php deleted file mode 100644 index 87ec766..0000000 --- a/function.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -function getHeader($url){ - $agent = "Retrieve HTTP headers online. v0.1"; - $ch = curl_init($url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_HEADER, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); - curl_setopt($ch, CURLOPT_USERAGENT, $agent); - - $response = curl_exec($ch); - $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); - $header = substr($response, 0, $header_size); - return $header; -} |
