PHP examples
This commit is contained in:
13
php/examples/simpleget.php
Normal file
13
php/examples/simpleget.php
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# A very simple example that gets a HTTP page.
|
||||
#
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
curl_setopt ($ch, CURLOPT_URL, "http://www.zend.com/");
|
||||
curl_setopt ($ch, CURLOPT_HEADER, 0);
|
||||
|
||||
curl_exec ($ch);
|
||||
|
||||
curl_close ($ch);
|
||||
|
Reference in New Issue
Block a user