aboutsummaryrefslogtreecommitdiff
path: root/php/examples/getbinarypageinvar.php
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-01 07:40:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-01 07:40:32 +0000
commit9ff28a823702781f7e90cd44f31032a453827e7a (patch)
treebc29b74be5941b9910f433042c182829cc44aba2 /php/examples/getbinarypageinvar.php
parente9aa07f660a3663281416fd5d391bcee78a117ec (diff)
moved to separate module
Diffstat (limited to 'php/examples/getbinarypageinvar.php')
-rw-r--r--php/examples/getbinarypageinvar.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/php/examples/getbinarypageinvar.php b/php/examples/getbinarypageinvar.php
deleted file mode 100644
index 52e542c3d..000000000
--- a/php/examples/getbinarypageinvar.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-// Allocate a new cURL handle
-$ch = curl_init("http://www.designmultimedia.com/intro.jpg");
-if (! $ch) {
- die( "Cannot allocate a new PHP-CURL handle" );
-}
-
-// We'll be returning this transfer, and the data is binary
-// so we don't want to NULL terminate
-curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
-
-// Grab the jpg and save the contents in the $data variable
-$data = curl_exec($ch);
-
-// close the connection
-curl_close($ch);
-
-// Set the header to type image/jpeg, since that's what we're
-// displaying
-header("Content-type: image/jpeg");
-
-// Output the image
-print( $data );
-?>