1
2<?php
3// create a new cURL resource
4$ch = curl_init();
5
6// set URL and other appropriate options
7$options = array(CURLOPT_URL => 'http://www.example.com/',
8 CURLOPT_HEADER => false
9 );
10
11curl_setopt_array($ch, $options);
12
13// grab URL and pass it to the browser
14curl_exec($ch);
15
16// close cURL resource, and free up system resources
17curl_close($ch);
18?>
19
20