summaryrefslogtreecommitdiff
path: root/urlencode.php
blob: c40263d684272a827c5832e9881acbf9cafa61a6 (plain)
1
2
3
4
5
6
#!/usr/bin/php -n
<?php
# Copyright (C) 2011, 2014 Luke Shumaker <lukeshu@sbcglobal.net>

$contents = file_get_contents('php://stdin');
echo urlencode($contents);