]> granicus.if.org Git - curl/commitdiff
moved to ../../php/examples/
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Mar 2001 13:45:42 +0000 (13:45 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Mar 2001 13:45:42 +0000 (13:45 +0000)
docs/examples/getpageinvar.php [deleted file]
docs/examples/simpleget.php [deleted file]
docs/examples/simplepost.php [deleted file]

diff --git a/docs/examples/getpageinvar.php b/docs/examples/getpageinvar.php
deleted file mode 100644 (file)
index c8d5c49..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-# The PHP curl module supports the received page to be returned in a variable
-# if told.
-#
-$ch = curl_init();
-
-curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/");
-curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
-$result=curl_exec ($ch);
-curl_close ($ch);
diff --git a/docs/examples/simpleget.php b/docs/examples/simpleget.php
deleted file mode 100644 (file)
index 17c1757..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# 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);
-
diff --git a/docs/examples/simplepost.php b/docs/examples/simplepost.php
deleted file mode 100644 (file)
index dc4eadf..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# A very simple PHP example that sends a HTTP POST to a remote site
-#
-
-$ch = curl_init();
-
-curl_setopt($ch, CURLOPT_URL,"http://www.mysite.com/tester.phtml");
-curl_setopt($ch, CURLOPT_POST, 1);
-curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3");
-
-curl_exec ($ch);
-curl_close ($ch);