summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-07 02:30:25 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-07 02:30:25 -0500
commit4c96b02ae96318b1a83abffc20251abbdcb7d8ed (patch)
treeb30724d5e4d7e643b67c339e0ff32dada5c41eaa
parenteaf6c424458c0bcfc5153188e3b056b794e09183 (diff)
add urlencode, to match urldecode
-rw-r--r--Makefile1
-rw-r--r--urlencode.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aafce7c..7c28090 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ BINFILES = \
roll \
tempmon \
urldecode \
+ urlencode \
v-www-browser \
v-editor
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);