summaryrefslogtreecommitdiff
path: root/urlencode.php
diff options
context:
space:
mode:
Diffstat (limited to 'urlencode.php')
-rw-r--r--urlencode.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/urlencode.php b/urlencode.php
new file mode 100644
index 0000000..53ffec8
--- /dev/null
+++ b/urlencode.php
@@ -0,0 +1,5 @@
+#!/usr/bin/php -n
+<?php
+
+$contents = file_get_contents('php://stdin');
+echo urlencode($contents);