aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@bumblebury.com>2001-05-31 12:32:04 +0000
committerSterling Hughes <sterling@bumblebury.com>2001-05-31 12:32:04 +0000
commit490c00fb3048ad6c7558e69d7b0abd57af858cbc (patch)
treebb747a12991b92bd0bbeb90186cf48c0c07f624b
parent2d0dbd87c359a32d16d5d6e92c2854cca72cf5a3 (diff)
Change to // comments and add <?php and ?> wrappers
-rw-r--r--php/examples/simplepost.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/php/examples/simplepost.php b/php/examples/simplepost.php
index dc4eadf5a..1c29447ba 100644
--- a/php/examples/simplepost.php
+++ b/php/examples/simplepost.php
@@ -1,6 +1,7 @@
-#
-# A very simple PHP example that sends a HTTP POST to a remote site
-#
+<?php
+//
+// A very simple PHP example that sends a HTTP POST to a remote site
+//
$ch = curl_init();
@@ -10,3 +11,4 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=v
curl_exec ($ch);
curl_close ($ch);
+?>