aboutsummaryrefslogtreecommitdiff
path: root/php/examples/simpleget.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/examples/simpleget.php')
-rw-r--r--php/examples/simpleget.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/php/examples/simpleget.php b/php/examples/simpleget.php
index 17c1757bf..0ae431315 100644
--- a/php/examples/simpleget.php
+++ b/php/examples/simpleget.php
@@ -1,6 +1,7 @@
-#
-# A very simple example that gets a HTTP page.
-#
+<?php
+//
+// A very simple example that gets a HTTP page.
+//
$ch = curl_init();
@@ -10,4 +11,4 @@ curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
-
+?>